diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-11-06 14:39:20 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-11-06 14:39:20 +0000 |
commit | bad78159d4f99dbf2b465948861a8d13c192a090 (patch) | |
tree | 8fd234b33af1a5570fb213c18babe892519fc84e /usr.sbin/mailwrapper | |
parent | ffa0ca8c090934f01ce0b62dbd1d818745a739aa (diff) |
avoid coredump when ther;s only one token on a line; ok millert@
Diffstat (limited to 'usr.sbin/mailwrapper')
-rw-r--r-- | usr.sbin/mailwrapper/mailwrapper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/mailwrapper/mailwrapper.c b/usr.sbin/mailwrapper/mailwrapper.c index d8e1deb2319..362b67da0fd 100644 --- a/usr.sbin/mailwrapper/mailwrapper.c +++ b/usr.sbin/mailwrapper/mailwrapper.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mailwrapper.c,v 1.17 2007/09/02 15:19:39 deraadt Exp $ */ +/* $OpenBSD: mailwrapper.c,v 1.18 2007/11/06 14:39:19 otto Exp $ */ /* $NetBSD: mailwrapper.c,v 1.2 1999/02/20 22:10:07 thorpej Exp $ */ /* @@ -125,7 +125,7 @@ main(int argc, char *argv[], char *envp[]) continue; } - if ((from = strsep(&cp, WS)) == NULL) + if ((from = strsep(&cp, WS)) == NULL || cp == NULL) goto parse_error; cp += strspn(cp, WS); |