[IPV6]: Replace bogus instances of inet->recverr
While looking at this problem I noticed that IPv6 was sometimes looking at inet->recverr which is bogus. Here is a patch to correct that and use np->recverr. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
357b40a18b
commit
3320da8906
@@ -1149,7 +1149,7 @@ int ip6_push_pending_frames(struct sock *sk)
|
||||
err = NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, skb, NULL, skb->dst->dev, dst_output);
|
||||
if (err) {
|
||||
if (err > 0)
|
||||
err = inet->recverr ? net_xmit_errno(err) : 0;
|
||||
err = np->recverr ? net_xmit_errno(err) : 0;
|
||||
if (err)
|
||||
goto error;
|
||||
}
|
||||
|
Reference in New Issue
Block a user