diff options
Diffstat (limited to 'net/ipv6')
| -rw-r--r-- | net/ipv6/tcp_ipv6.c | 2 | ||||
| -rw-r--r-- | net/ipv6/udp.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 548a06e66b4e..d2ef3a39dff4 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
| @@ -1006,7 +1006,7 @@ static void tcp_v6_send_response(struct sk_buff *skb, u32 seq, u32 ack, u32 win, | |||
| 1006 | skb_reserve(buff, MAX_HEADER + sizeof(struct ipv6hdr) + tot_len); | 1006 | skb_reserve(buff, MAX_HEADER + sizeof(struct ipv6hdr) + tot_len); |
| 1007 | 1007 | ||
| 1008 | t1 = (struct tcphdr *) skb_push(buff, tot_len); | 1008 | t1 = (struct tcphdr *) skb_push(buff, tot_len); |
| 1009 | skb_reset_transport_header(skb); | 1009 | skb_reset_transport_header(buff); |
| 1010 | 1010 | ||
| 1011 | /* Swap the send and the receive. */ | 1011 | /* Swap the send and the receive. */ |
| 1012 | memset(t1, 0, sizeof(*t1)); | 1012 | memset(t1, 0, sizeof(*t1)); |
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index d9714d20705d..4f57cd2b353a 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
| @@ -258,8 +258,8 @@ static struct sock *__udp6_lib_lookup(struct net *net, | |||
| 258 | if (hslot->count < hslot2->count) | 258 | if (hslot->count < hslot2->count) |
| 259 | goto begin; | 259 | goto begin; |
| 260 | 260 | ||
| 261 | result = udp6_lib_lookup2(net, &in6addr_any, sport, | 261 | result = udp6_lib_lookup2(net, saddr, sport, |
| 262 | daddr, hnum, dif, | 262 | &in6addr_any, hnum, dif, |
| 263 | hslot2, slot2); | 263 | hslot2, slot2); |
| 264 | } | 264 | } |
| 265 | rcu_read_unlock(); | 265 | rcu_read_unlock(); |
