diff options
author | brian <brian@FreeBSD.org> | 1999-07-28 19:39:00 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-07-28 19:39:00 +0000 |
commit | 61cc9f6d68d8b55cedeafe16ebb835fae2143395 (patch) | |
tree | 14cdcf1258a62823c289d8d79fd294aee9001295 | |
parent | c35098dcbfa7ff21373332a1f78c565ecdcfdb11 (diff) | |
download | FreeBSD-src-61cc9f6d68d8b55cedeafe16ebb835fae2143395.zip FreeBSD-src-61cc9f6d68d8b55cedeafe16ebb835fae2143395.tar.gz |
Don't return a garbage mbuf pointer after storing it
as an unresolved fragment.
-rw-r--r-- | usr.sbin/ppp/alias_cmd.c | 4 | ||||
-rw-r--r-- | usr.sbin/ppp/nat_cmd.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/alias_cmd.c b/usr.sbin/ppp/alias_cmd.c index 3c9acad..2552f90 100644 --- a/usr.sbin/ppp/alias_cmd.c +++ b/usr.sbin/ppp/alias_cmd.c @@ -2,7 +2,7 @@ * The code in this file was written by Eivind Eklund <perhaps@yes.no>, * who places it in the public domain without restriction. * - * $Id: alias_cmd.c,v 1.27 1999/06/10 00:17:26 brian Exp $ + * $Id: alias_cmd.c,v 1.28 1999/07/24 02:53:39 brian Exp $ */ #include <sys/param.h> @@ -403,7 +403,7 @@ alias_LayerPull(struct bundle *bundle, struct link *l, struct mbuf *bp, case PKT_ALIAS_UNRESOLVED_FRAGMENT: /* Save the data for later */ fptr = malloc(bp->cnt); - mbuf_Read(bp, fptr, bp->cnt); + bp = mbuf_Read(bp, fptr, bp->cnt); PacketAliasSaveFragment(fptr); break; diff --git a/usr.sbin/ppp/nat_cmd.c b/usr.sbin/ppp/nat_cmd.c index 3c9acad..2552f90 100644 --- a/usr.sbin/ppp/nat_cmd.c +++ b/usr.sbin/ppp/nat_cmd.c @@ -2,7 +2,7 @@ * The code in this file was written by Eivind Eklund <perhaps@yes.no>, * who places it in the public domain without restriction. * - * $Id: alias_cmd.c,v 1.27 1999/06/10 00:17:26 brian Exp $ + * $Id: alias_cmd.c,v 1.28 1999/07/24 02:53:39 brian Exp $ */ #include <sys/param.h> @@ -403,7 +403,7 @@ alias_LayerPull(struct bundle *bundle, struct link *l, struct mbuf *bp, case PKT_ALIAS_UNRESOLVED_FRAGMENT: /* Save the data for later */ fptr = malloc(bp->cnt); - mbuf_Read(bp, fptr, bp->cnt); + bp = mbuf_Read(bp, fptr, bp->cnt); PacketAliasSaveFragment(fptr); break; |