If TCPDEBUG is defined, we could dereference a tp which was freed.
This commit is contained in:
parent
bcbd7b592f
commit
66c1d6a33b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user