]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv6/inet6_hashtables.c
[INET]: Fix accidentally broken inet(6)_hash_connect's port offset calculations.
[karo-tx-linux.git] / net / ipv6 / inet6_hashtables.c
index 43f3993e1f304d009728a5d9100b1911d28c3543..99fd25f7f005879ec28b78b6af51890c7abb5fd8 100644 (file)
@@ -236,7 +236,7 @@ static inline u32 inet6_sk_port_offset(const struct sock *sk)
 int inet6_hash_connect(struct inet_timewait_death_row *death_row,
                       struct sock *sk)
 {
-       return __inet_hash_connect(death_row, sk,
+       return __inet_hash_connect(death_row, sk, inet6_sk_port_offset(sk),
                        __inet6_check_established, __inet6_hash);
 }