diff options
author | hiren <hiren@FreeBSD.org> | 2015-10-02 16:30:54 +0000 |
---|---|---|
committer | hiren <hiren@FreeBSD.org> | 2015-10-02 16:30:54 +0000 |
commit | ef46b98fe1a6a019eb37105d85e5bf32f8a088a0 (patch) | |
tree | 3853bb4991344d60bd31ea6ff5c55f0023ad9f0a | |
parent | 72912c00d14d420ccd73322c30a19e9c74e87231 (diff) | |
download | FreeBSD-src-ef46b98fe1a6a019eb37105d85e5bf32f8a088a0.zip FreeBSD-src-ef46b98fe1a6a019eb37105d85e5bf32f8a088a0.tar.gz |
MFC r287830
Remove unnecessary tcp state transition call.
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index be9e0e7..c848306 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1746,9 +1746,9 @@ tcp_usrclosed(struct tcpcb *tp) #ifdef TCP_OFFLOAD tcp_offload_listen_stop(tp); #endif + tcp_state_change(tp, TCPS_CLOSED); /* FALLTHROUGH */ case TCPS_CLOSED: - tcp_state_change(tp, TCPS_CLOSED); tp = tcp_close(tp); /* * tcp_close() should never return NULL here as the socket is |