Author: hiren
Date: Fri Oct  2 16:30:54 2015
New Revision: 288509
URL: https://svnweb.freebsd.org/changeset/base/288509

Log:
  MFC r287830
  
  Remove unnecessary tcp state transition call.

Modified:
  stable/10/sys/netinet/tcp_usrreq.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet/tcp_usrreq.c
==============================================================================
--- stable/10/sys/netinet/tcp_usrreq.c  Fri Oct  2 16:22:24 2015        
(r288508)
+++ stable/10/sys/netinet/tcp_usrreq.c  Fri Oct  2 16:30:54 2015        
(r288509)
@@ -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
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to