diff options
author | glebius <glebius@FreeBSD.org> | 2006-05-16 10:51:26 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2006-05-16 10:51:26 +0000 |
commit | 7840c3c3e096cd9dccdd40980840f31270536639 (patch) | |
tree | c7cffbb6e5a13ce8793fd0344bfcee4e877a68a3 /sys/netinet/tcp_timer.c | |
parent | 9b4bb59e8cf1df35ff16aaafec30639f2b1c51ff (diff) | |
download | FreeBSD-src-7840c3c3e096cd9dccdd40980840f31270536639.zip FreeBSD-src-7840c3c3e096cd9dccdd40980840f31270536639.tar.gz |
- Backout one line from 1.78. The tp can be freed by tcp_drop().
- Style next line.
Coverity ID: 912
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-rw-r--r-- | sys/netinet/tcp_timer.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); |