summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timer.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-04-12 06:49:56 +0000
committerdg <dg@FreeBSD.org>1995-04-12 06:49:56 +0000
commitb915c765f333f4d8a4e0e6d28bb266cedd01f867 (patch)
tree99fd3ed47b5c2eb71a338ca2d9b0795a7a308f50 /sys/netinet/tcp_timer.c
parent6e2a70a06ef0011f622ff9d7a5477e2e8beb48b8 (diff)
downloadFreeBSD-src-b915c765f333f4d8a4e0e6d28bb266cedd01f867.zip
FreeBSD-src-b915c765f333f4d8a4e0e6d28bb266cedd01f867.tar.gz
Fixed bug I introduced when changing PCB list to use 4.4BSD style queue
macros. Basically, detect 'tp' going away differently.
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-rw-r--r--sys/netinet/tcp_timer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c
index 426b749..4437ce0 100644
--- a/sys/netinet/tcp_timer.c
+++ b/sys/netinet/tcp_timer.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_timer.c 8.1 (Berkeley) 6/10/93
- * $Id: tcp_timer.c,v 1.4 1995/02/16 00:55:42 wollman Exp $
+ * $Id: tcp_timer.c,v 1.5 1995/04/09 01:29:27 davidg Exp $
*/
#ifndef TUBA_INCLUDE
@@ -120,10 +120,9 @@ tcp_slowtimo()
continue;
for (i = 0; i < TCPT_NTIMERS; i++) {
if (tp->t_timer[i] && --tp->t_timer[i] == 0) {
- (void) tcp_usrreq(tp->t_inpcb->inp_socket,
+ if (tcp_usrreq(tp->t_inpcb->inp_socket,
PRU_SLOWTIMO, (struct mbuf *)0,
- (struct mbuf *)i, (struct mbuf *)0);
- if (*ipnxt->inp_list.le_prev != ip)
+ (struct mbuf *)i, (struct mbuf *)0) == NULL)
goto tpgone;
}
}
OpenPOWER on IntegriCloud