Zero mbuf::pnext when Dequeue()ing.

This commit is contained in:
Brian Somers 1998-06-16 19:40:20 +00:00
parent 2ebd0c3795
commit 9ef0938e40
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37017

View file

@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: mbuf.c,v 1.15 1998/06/15 19:06:17 brian Exp $
* $Id: mbuf.c,v 1.16 1998/06/16 07:15:11 brian Exp $
*
*/
#include <sys/types.h>
@ -194,6 +194,7 @@ mbuf_Dequeue(struct mqueue *q)
if (q->qlen)
log_Printf(LogERROR, "mbuf_Dequeue: Not zero (%d)!!!\n", q->qlen);
}
bp->pnext = NULL;
}
return bp;