From 7840c3c3e096cd9dccdd40980840f31270536639 Mon Sep 17 00:00:00 2001 From: glebius Date: Tue, 16 May 2006 10:51:26 +0000 Subject: - Backout one line from 1.78. The tp can be freed by tcp_drop(). - Style next line. Coverity ID: 912 --- sys/netinet/tcp_timer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/netinet/tcp_timer.c') diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index 25cdaec..6dfc8df 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -449,9 +449,8 @@ tcp_timer_persist(xtp) out: #ifdef TCPDEBUG - if (tp->t_inpcb->inp_socket->so_options & SO_DEBUG) - tcp_trace(TA_USER, ostate, tp, (void *)0, (struct tcphdr *)0, - PRU_SLOWTIMO); + if (tp != NULL && tp->t_inpcb->inp_socket->so_options & SO_DEBUG) + tcp_trace(TA_USER, ostate, tp, NULL, NULL, PRU_SLOWTIMO); #endif if (tp != NULL) INP_UNLOCK(inp); -- cgit v1.1