]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet/tcp_subr.c
xnu-517.3.15.tar.gz
[apple/xnu.git] / bsd / netinet / tcp_subr.c
index 0ce5d476fb94221a4187ad495852da41c53e1672..a09127e94cdf38e6d530af93f76c80ed17d5e659 100644 (file)
@@ -693,6 +693,9 @@ tcp_close(tp)
        register struct rtentry *rt;
        int dosavessthresh;
 
+       if ( inp->inp_ppcb == NULL) /* tcp_close was called previously, bail */
+               return;
+
 #ifndef __APPLE__
        /*
         * Make sure that all of our timers are stopped before we
@@ -712,6 +715,7 @@ tcp_close(tp)
                }
        }
 #endif
+       
 
        KERNEL_DEBUG(DBG_FNC_TCP_CLOSE | DBG_FUNC_START, tp,0,0,0,0);
        switch (tp->t_state)