From: Paul Mackerras Date: Thu, 27 Nov 1997 06:05:36 +0000 (+0000) Subject: minor bug fix X-Git-Tag: RELEASE_2_3_6~158 X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=0631a591f5290ceb3a0eb3004d890f5273f13b42;hp=1e1a4695859cbe84201bb8da80bc8b59b5b4a1df minor bug fix --- diff --git a/modules/ppp.c b/modules/ppp.c index 57bf02a..f386e5b 100644 --- a/modules/ppp.c +++ b/modules/ppp.c @@ -24,7 +24,7 @@ * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, * OR MODIFICATIONS. * - * $Id: ppp.c,v 1.12 1997/07/14 03:51:15 paulus Exp $ + * $Id: ppp.c,v 1.13 1997/11/27 06:05:36 paulus Exp $ */ /* @@ -1859,7 +1859,7 @@ ip_hard_filter(us, mp, outbound) switch (proto) { case PPP_IP: - if ((mp->b_wptr - mp->b_rptr) == PPP_HDRLEN) { + if ((mp->b_wptr - mp->b_rptr) == PPP_HDRLEN && mp->b_cont != 0) { temp_mp = mp->b_cont; len = msgdsize(temp_mp); hlen = (len < MAX_IPHDR) ? len : MAX_IPHDR;