Skip to content

Commit 5172393

Browse files
Eric Dumazetdavem330
Eric Dumazet
authored andcommitted
tcp: fix tcp_v6_md5_do_lookup prototype
tcp_v6_md5_do_lookup() now takes a const socket, even if CONFIG_TCP_MD5SIG is not set. Fixes: b83e3de ("tcp: md5: constify tcp_md5_do_lookup() socket argument") From: Eric Dumazet <[email protected]> Reported-by: kbuild test robot <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent eef50d4 commit 5172393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/tcp_ipv6.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static const struct inet_connection_sock_af_ops ipv6_specific;
8282
static const struct tcp_sock_af_ops tcp_sock_ipv6_specific;
8383
static const struct tcp_sock_af_ops tcp_sock_ipv6_mapped_specific;
8484
#else
85-
static struct tcp_md5sig_key *tcp_v6_md5_do_lookup(struct sock *sk,
85+
static struct tcp_md5sig_key *tcp_v6_md5_do_lookup(const struct sock *sk,
8686
const struct in6_addr *addr)
8787
{
8888
return NULL;

0 commit comments

Comments
 (0)