mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
If TCPDEBUG is defined, we could dereference a tp which was freed.
This commit is contained in:
parent
8072a67c79
commit
d17e895b5f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue