diff options
Diffstat (limited to 'net/ipv4/ip_sockglue.c')
-rw-r--r-- | net/ipv4/ip_sockglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c index fcb35cd5ccfd..c199d2311731 100644 --- a/net/ipv4/ip_sockglue.c +++ b/net/ipv4/ip_sockglue.c | |||
@@ -316,7 +316,7 @@ void ip_local_error(struct sock *sk, int err, __be32 daddr, __be16 port, u32 inf | |||
316 | serr->addr_offset = (u8 *)&iph->daddr - skb_network_header(skb); | 316 | serr->addr_offset = (u8 *)&iph->daddr - skb_network_header(skb); |
317 | serr->port = port; | 317 | serr->port = port; |
318 | 318 | ||
319 | __skb_pull(skb, skb->tail - skb->data); | 319 | __skb_pull(skb, skb_tail_pointer(skb) - skb->data); |
320 | skb_reset_transport_header(skb); | 320 | skb_reset_transport_header(skb); |
321 | 321 | ||
322 | if (sock_queue_err_skb(sk, skb)) | 322 | if (sock_queue_err_skb(sk, skb)) |