Skip to content

Commit 51d03e2

Browse files
edumazetdavem330
authored andcommitted
udp6: fix udp6_ehashfn() typo
Amit Klein reported that udp6_ehash_secret was initialized but never used. Fixes: 1bbdcee ("inet: convert inet_ehash_secret and ipv6_hash_secret to net_get_random_once") Reported-by: Amit Klein <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Cc: Willy Tarreau <[email protected]> Cc: Willem de Bruijn <[email protected]> Cc: David Ahern <[email protected]> Cc: Hannes Frederic Sowa <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2aaa8a1 commit 51d03e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/udp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static u32 udp6_ehashfn(const struct net *net,
9191
fhash = __ipv6_addr_jhash(faddr, udp_ipv6_hash_secret);
9292

9393
return __inet6_ehashfn(lhash, lport, fhash, fport,
94-
udp_ipv6_hash_secret + net_hash_mix(net));
94+
udp6_ehash_secret + net_hash_mix(net));
9595
}
9696

9797
int udp_v6_get_port(struct sock *sk, unsigned short snum)

0 commit comments

Comments
 (0)