summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1999-07-28 19:39:18 +0000
committerbrian <brian@cvs.openbsd.org>1999-07-28 19:39:18 +0000
commit6eaf4f9b6667259e662302bc556d1f2bf3346e80 (patch)
tree7b7c887adf953e02aa6098563cdfe4081d262f12
parent9746d1703983f4a758038253b332196e423b6d2d (diff)
Don't return a garbage mbuf pointer after storing it
as an unresolved fragment.
-rw-r--r--usr.sbin/ppp/ppp/alias_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/alias_cmd.c b/usr.sbin/ppp/ppp/alias_cmd.c
index 40474a9cf96..f072a199b53 100644
--- a/usr.sbin/ppp/ppp/alias_cmd.c
+++ b/usr.sbin/ppp/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.11 1999/07/24 03:20:00 brian Exp $
+ * $Id: alias_cmd.c,v 1.12 1999/07/28 19:39:17 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;