tcpv6: fix error with CONFIG_TCP_MD5SIG disabled
This patch fix error with CONFIG_TCP_MD5SIG disabled. Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bb21c95e2d
commit
fa3e5b4eb8
1 changed files with 1 additions and 5 deletions
|
@ -1036,9 +1036,7 @@ static void tcp_v6_send_reset(struct sock *sk, struct sk_buff *skb)
|
||||||
{
|
{
|
||||||
struct tcphdr *th = tcp_hdr(skb);
|
struct tcphdr *th = tcp_hdr(skb);
|
||||||
u32 seq = 0, ack_seq = 0;
|
u32 seq = 0, ack_seq = 0;
|
||||||
#ifdef CONFIG_TCP_MD5SIG
|
struct tcp_md5sig_key *key = NULL;
|
||||||
struct tcp_md5sig_key *key;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (th->rst)
|
if (th->rst)
|
||||||
return;
|
return;
|
||||||
|
@ -1049,8 +1047,6 @@ static void tcp_v6_send_reset(struct sock *sk, struct sk_buff *skb)
|
||||||
#ifdef CONFIG_TCP_MD5SIG
|
#ifdef CONFIG_TCP_MD5SIG
|
||||||
if (sk)
|
if (sk)
|
||||||
key = tcp_v6_md5_do_lookup(sk, &ipv6_hdr(skb)->daddr);
|
key = tcp_v6_md5_do_lookup(sk, &ipv6_hdr(skb)->daddr);
|
||||||
else
|
|
||||||
key = NULL;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (th->ack)
|
if (th->ack)
|
||||||
|
|
Loading…
Add table
Reference in a new issue