From 61cc9f6d68d8b55cedeafe16ebb835fae2143395 Mon Sep 17 00:00:00 2001 From: brian Date: Wed, 28 Jul 1999 19:39:00 +0000 Subject: Don't return a garbage mbuf pointer after storing it as an unresolved fragment. --- usr.sbin/ppp/alias_cmd.c | 4 ++-- usr.sbin/ppp/nat_cmd.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin') 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 , * 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 @@ -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 , * 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 @@ -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; -- cgit v1.1