From 7f1d30def45b4a29c9e73bf0b31128c62f2d607f Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 13 May 1997 20:34:01 +0000 Subject: Fix a bug (dereferencing zero) introduced by the last mods. Submitted by: David Nugent --- usr.sbin/pppd/auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/pppd') diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c index 42e23f3..5e696a2 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.14 1997/04/15 07:00:32 danny Exp $"; +static char rcsid[] = "$Id: auth.c,v 1.15 1997/04/16 02:07:06 danny Exp $"; #endif #include @@ -1036,7 +1036,7 @@ scan_authfile(f, client, server, 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 && *client != '\0'; return best_flag; } -- cgit v1.1