summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>1997-11-27 06:05:36 +0000
committerPaul Mackerras <paulus@samba.org>1997-11-27 06:05:36 +0000
commit0631a591f5290ceb3a0eb3004d890f5273f13b42 (patch)
treec695493273d34ef55fd62769a3851453625803dd /modules
parent1e1a4695859cbe84201bb8da80bc8b59b5b4a1df (diff)
downloadppp-0631a591f5290ceb3a0eb3004d890f5273f13b42.tar.gz
minor bug fix
Diffstat (limited to 'modules')
-rw-r--r--modules/ppp.c4
1 files changed, 2 insertions, 2 deletions
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;