diff options
author | brian <brian@FreeBSD.org> | 1998-07-11 19:05:24 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-07-11 19:05:24 +0000 |
commit | 16c798673846a24f590e1dad5f03012d22daa035 (patch) | |
tree | c4266110ad7ecad881511c73ccdb4be0fcbdce3a | |
parent | 5b74d7e9c7c1f6bdcbae4e658c76c41016cdbf6b (diff) | |
download | FreeBSD-src-16c798673846a24f590e1dad5f03012d22daa035.zip FreeBSD-src-16c798673846a24f590e1dad5f03012d22daa035.tar.gz |
Check the ``alive'' filter for a packet *before* the
mbuf is deallocated by vj_SendFrame().
-rw-r--r-- | usr.sbin/ppp/ip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c index 393788b..55e0a59 100644 --- a/usr.sbin/ppp/ip.c +++ b/usr.sbin/ppp/ip.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: ip.c,v 1.47 1998/06/27 14:18:05 brian Exp $ + * $Id: ip.c,v 1.48 1998/06/27 23:48:45 brian Exp $ * * TODO: * o Return ICMP message for filterd packet @@ -532,9 +532,9 @@ ip_FlushPacket(struct link *l, struct bundle *bundle) struct ip *pip = (struct ip *)MBUF_CTOP(bp); cnt = mbuf_Length(bp); - vj_SendFrame(l, bp, bundle); if (!(FilterCheck(pip, &bundle->filter.alive) & A_DENY)) bundle_StartIdleTimer(bundle); + vj_SendFrame(l, bp, bundle); ipcp_AddOutOctets(&bundle->ncp.ipcp, cnt); return 1; } |