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:
parent
8072a67c79
commit
d17e895b5f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66552
@ -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…
Reference in New Issue
Block a user