summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/defs.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/defs.c')
-rw-r--r--usr.sbin/ppp/defs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ppp/defs.c b/usr.sbin/ppp/defs.c
index 4cb6de6..6e7d5c9 100644
--- a/usr.sbin/ppp/defs.c
+++ b/usr.sbin/ppp/defs.c
@@ -276,6 +276,7 @@ findblank(char *p, int instring)
return (p);
p++;
}
+ return NULL;
} else {
while (*p) {
if (issep(*p))
@@ -311,7 +312,9 @@ MakeArgs(char *script, char **pvect, int maxargs)
*pvect++ = script;
nargs++;
script = findblank(script, instring);
- if (*script)
+ if (script == NULL)
+ return -1;
+ else if (*script)
*script++ = '\0';
}
}
OpenPOWER on IntegriCloud