Fixed bug I introduced when changing PCB list to use 4.4BSD style queue

macros. Basically, detect 'tp' going away differently.
This commit is contained in:
David Greenman 1995-04-12 06:49:56 +00:00
parent 7cccae663d
commit 230620627b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7770

View file

@ -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;
}
}