diff options
author | John Polstra <jdp@FreeBSD.org> | 1997-12-13 05:27:29 +0000 |
---|---|---|
committer | John Polstra <jdp@FreeBSD.org> | 1997-12-13 05:27:29 +0000 |
commit | 14e6f796cd3ec53469f8c2485efaa79159c8efc6 (patch) | |
tree | fd7e26a9cc3b717b49a9930b9a348d030a49ae43 /usr.sbin/pppd/auth.c | |
parent | d7b7dcba41ac3c46e7ccd2efb837c560a867cba9 (diff) | |
download | src-14e6f796cd3ec53469f8c2485efaa79159c8efc6.tar.gz src-14e6f796cd3ec53469f8c2485efaa79159c8efc6.zip |
Fix a segmentation violation that happened if "auth" was in the
options file but there was no suitable secret in the secrets file.
Notes
Notes:
svn path=/head/; revision=31692
Diffstat (limited to 'usr.sbin/pppd/auth.c')
-rw-r--r-- | usr.sbin/pppd/auth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c index 4e9745c5b667..72481432d78f 100644 --- a/usr.sbin/pppd/auth.c +++ b/usr.sbin/pppd/auth.c @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: auth.c,v 1.19 1997/10/10 06:02:54 peter Exp $"; +static char rcsid[] = "$Id: auth.c,v 1.20 1997/10/28 16:50:56 brian Exp $"; #endif #include <stdio.h> @@ -1477,7 +1477,8 @@ scan_authfile(f, client, server, ipaddr, secret, addrs, filename) else if (addr_list != NULL) free_wordlist(addr_list); - non_wildclient = (best_flag & NONWILD_CLIENT) && *client != '\0'; + non_wildclient = (best_flag & NONWILD_CLIENT) && client != NULL && + *client != '\0'; return best_flag; } |