aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r--net/ipv4/tcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index c5aca0bb116a..f60a5917e54d 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -1680,7 +1680,7 @@ void tcp_set_state(struct sock *sk, int state)
1680 inet_put_port(sk); 1680 inet_put_port(sk);
1681 /* fall through */ 1681 /* fall through */
1682 default: 1682 default:
1683 if (oldstate==TCP_ESTABLISHED) 1683 if (oldstate == TCP_ESTABLISHED)
1684 TCP_DEC_STATS(sock_net(sk), TCP_MIB_CURRESTAB); 1684 TCP_DEC_STATS(sock_net(sk), TCP_MIB_CURRESTAB);
1685 } 1685 }
1686 1686
@@ -1690,7 +1690,7 @@ void tcp_set_state(struct sock *sk, int state)
1690 sk->sk_state = state; 1690 sk->sk_state = state;
1691 1691
1692#ifdef STATE_TRACE 1692#ifdef STATE_TRACE
1693 SOCK_DEBUG(sk, "TCP sk=%p, State %s -> %s\n",sk, statename[oldstate],statename[state]); 1693 SOCK_DEBUG(sk, "TCP sk=%p, State %s -> %s\n", sk, statename[oldstate], statename[state]);
1694#endif 1694#endif
1695} 1695}
1696EXPORT_SYMBOL_GPL(tcp_set_state); 1696EXPORT_SYMBOL_GPL(tcp_set_state);
@@ -2650,7 +2650,7 @@ EXPORT_SYMBOL(tcp_md5_hash_key);
2650 2650
2651void tcp_done(struct sock *sk) 2651void tcp_done(struct sock *sk)
2652{ 2652{
2653 if(sk->sk_state == TCP_SYN_SENT || sk->sk_state == TCP_SYN_RECV) 2653 if (sk->sk_state == TCP_SYN_SENT || sk->sk_state == TCP_SYN_RECV)
2654 TCP_INC_STATS_BH(sock_net(sk), TCP_MIB_ATTEMPTFAILS); 2654 TCP_INC_STATS_BH(sock_net(sk), TCP_MIB_ATTEMPTFAILS);
2655 2655
2656 tcp_set_state(sk, TCP_CLOSE); 2656 tcp_set_state(sk, TCP_CLOSE);