In tcp_timer_2msl(), tp can never become NULL, so don't check it for
NULL before entering tcp_trace(). Found with: Coverity Prevent(tm) CID: 1840
This commit is contained in:
parent
1c293049d9
commit
c214db75f2
@ -461,7 +461,7 @@ tcp_timer_2msl(struct tcpcb *tp, struct inpcb *inp)
|
||||
}
|
||||
|
||||
#ifdef TCPDEBUG
|
||||
if (tp != NULL && (tp->t_inpcb->inp_socket->so_options & SO_DEBUG))
|
||||
if (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