summaryrefslogtreecommitdiff
path: root/pppd/ccp.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>1999-03-19 01:19:31 +0000
committerPaul Mackerras <paulus@samba.org>1999-03-19 01:19:31 +0000
commitf4cdbd273ac5142ed42e8e3fd7eb1109cd58119a (patch)
treed478009628b2a74554534a3ae7875b17139286e1 /pppd/ccp.c
parent75951d7bb62003e37dd390e773df19f16250d27d (diff)
downloadppp-f4cdbd273ac5142ed42e8e3fd7eb1109cd58119a.tar.gz
Ignore extra unrecognized options in Nak.
change order of args to strlcpy/strlcat.
Diffstat (limited to 'pppd/ccp.c')
-rw-r--r--pppd/ccp.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/pppd/ccp.c b/pppd/ccp.c
index 05cca76..7eae64d 100644
--- a/pppd/ccp.c
+++ b/pppd/ccp.c
@@ -26,7 +26,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: ccp.c,v 1.26 1999/03/16 22:54:38 paulus Exp $";
+static char rcsid[] = "$Id: ccp.c,v 1.27 1999/03/19 01:19:30 paulus Exp $";
#endif
#include <stdlib.h>
@@ -708,12 +708,9 @@ ccp_nakci(f, p, len)
/*
* Predictor-1 and 2 have no options, so they can't be Naked.
*
- * XXX What should we do with any remaining options?
+ * There may be remaining options but we ignore them.
*/
- if (len != 0)
- return 0;
-
if (f->state != OPENED)
*go = try;
return 1;
@@ -1034,7 +1031,7 @@ ccp_up(f)
if (go->method == ho->method) {
notice("%s compression enabled", method_name(go, ho));
} else {
- strlcpy(method1, sizeof(method1), method_name(go, NULL));
+ strlcpy(method1, method_name(go, NULL), sizeof(method1));
notice("%s / %s compression enabled",
method1, method_name(ho, NULL));
}