diff options
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index e3aab1c1cf78..45c8e459db49 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -580,7 +580,7 @@ static unsigned int tcp_syn_options(struct sock *sk, struct sk_buff *skb, | |||
580 | opts->options |= OPTION_WSCALE; | 580 | opts->options |= OPTION_WSCALE; |
581 | remaining -= TCPOLEN_WSCALE_ALIGNED; | 581 | remaining -= TCPOLEN_WSCALE_ALIGNED; |
582 | } | 582 | } |
583 | if (likely(sysctl_tcp_sack)) { | 583 | if (likely(sock_net(sk)->ipv4.sysctl_tcp_sack)) { |
584 | opts->options |= OPTION_SACK_ADVERTISE; | 584 | opts->options |= OPTION_SACK_ADVERTISE; |
585 | if (unlikely(!(OPTION_TS & opts->options))) | 585 | if (unlikely(!(OPTION_TS & opts->options))) |
586 | remaining -= TCPOLEN_SACKPERM_ALIGNED; | 586 | remaining -= TCPOLEN_SACKPERM_ALIGNED; |