1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

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

This commit is contained in:
Jonathan Lemon 2000-10-02 15:00:13 +00:00
parent 8072a67c79
commit d17e895b5f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66552

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