If TCPDEBUG is defined, we could dereference a tp which was freed.

This commit is contained in:
jlemon 2000-10-02 15:00:13 +00:00
parent bcbd7b592f
commit 66c1d6a33b

View File

@ -341,7 +341,7 @@ tcp_timer_persist(xtp)
out:
#ifdef TCPDEBUG
if (tp->t_inpcb->inp_socket->so_options & SO_DEBUG)
if (tp && tp->t_inpcb->inp_socket->so_options & SO_DEBUG)
tcp_trace(TA_USER, ostate, tp, (void *)0, (struct tcphdr *)0,
PRU_SLOWTIMO);
#endif