diff options
author | brian <brian@cvs.openbsd.org> | 1998-02-18 19:31:43 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1998-02-18 19:31:43 +0000 |
commit | bc3aec852e5a364d20f76e903b22ef8022ed7ce9 (patch) | |
tree | 70a6d1ab5a6ddc191d1fb1ec5ebe6a8def0cd3f6 /usr.sbin/ppp/ccp.c | |
parent | f59f91fb124b353e24f2fda8ddccbf5d51c66b19 (diff) |
Don't leak memory when the peer sends PROTO_COMPD packets
without negotiating compression first.
Diffstat (limited to 'usr.sbin/ppp/ccp.c')
-rw-r--r-- | usr.sbin/ppp/ccp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ccp.c b/usr.sbin/ppp/ccp.c index 04ed948828e..36736f68ee8 100644 --- a/usr.sbin/ppp/ccp.c +++ b/usr.sbin/ppp/ccp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: ccp.c,v 1.10 1998/01/21 02:13:29 brian Exp $ + * $Id: ccp.c,v 1.11 1998/02/18 19:31:42 brian Exp $ * * TODO: * o Support other compression protocols @@ -418,9 +418,9 @@ CompdInput(u_short *proto, struct mbuf *m) /* Send another REQ and put the packet in the bit bucket */ LogPrintf(LogCCP, "ReSendResetReq(%d)\n", CcpInfo.reset_sent); FsmOutput(&CcpFsm, CODE_RESETREQ, CcpInfo.reset_sent, NULL, 0); - pfree(m); } else if (in_algorithm >= 0 && in_algorithm < NALGORITHMS) return (*algorithm[in_algorithm]->i.Read)(proto, m); + pfree(m); return NULL; } |