diff options
author | 1997-12-28 02:57:12 +0000 | |
---|---|---|
committer | 1997-12-28 02:57:12 +0000 | |
commit | fd971a3f4b0d1f2dca2daf154a667c8078e57c4c (patch) | |
tree | 8884c3ddea775e99ddf4fced17c85c4b0adc11a0 | |
parent | If a packet causes a dial, continue to test whether it's (diff) | |
download | wireguard-openbsd-fd971a3f4b0d1f2dca2daf154a667c8078e57c4c.tar.xz wireguard-openbsd-fd971a3f4b0d1f2dca2daf154a667c8078e57c4c.zip |
Initialize mbuf::pnext.
Complain to LogERROR if we have internal inconsistency (not LogDEBUG).
-rw-r--r-- | usr.sbin/ppp/mbuf.c | 3 | ||||
-rw-r--r-- | usr.sbin/ppp/modem.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/mbuf.c b/usr.sbin/ppp/mbuf.c index 832e30b91c5..c7d8a68b993 100644 --- a/usr.sbin/ppp/mbuf.c +++ b/usr.sbin/ppp/mbuf.c @@ -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.1.1.1 1997/11/23 20:27:34 brian Exp $ + * $Id: mbuf.c,v 1.2 1997/12/28 02:57:12 brian Exp $ * */ #include <sys/param.h> @@ -79,6 +79,7 @@ mballoc(int cnt, int type) bp->base = p; bp->size = bp->cnt = cnt; bp->type = type; + bp->pnext = NULL; return (bp); } diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c index a763f22316e..ada306d851a 100644 --- a/usr.sbin/ppp/modem.c +++ b/usr.sbin/ppp/modem.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: modem.c,v 1.5 1997/12/24 09:30:42 brian Exp $ + * $Id: modem.c,v 1.6 1997/12/28 02:57:12 brian Exp $ * * TODO: */ @@ -106,7 +106,7 @@ Dequeue(struct mqueue * queue) if (queue->top == NULL) { queue->last = queue->top; if (queue->qlen) - LogPrintf(LogDEBUG, "Dequeue: Not zero (%d)!!!\n", queue->qlen); + LogPrintf(LogERROR, "Dequeue: Not zero (%d)!!!\n", queue->qlen); } } return (bp); |