summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pppd
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-05-13 20:34:01 +0000
committerbrian <brian@FreeBSD.org>1997-05-13 20:34:01 +0000
commit7f1d30def45b4a29c9e73bf0b31128c62f2d607f (patch)
treeaecdaaf56a0c6613d844d7e5e2d496702311edfd /usr.sbin/pppd
parenta35c44886523894dfc33a2b4237a667135c3ce00 (diff)
downloadFreeBSD-src-7f1d30def45b4a29c9e73bf0b31128c62f2d607f.zip
FreeBSD-src-7f1d30def45b4a29c9e73bf0b31128c62f2d607f.tar.gz
Fix a bug (dereferencing zero) introduced by the last mods.
Submitted by: David Nugent <davidn@labs.usn.blaze.net.au>
Diffstat (limited to 'usr.sbin/pppd')
-rw-r--r--usr.sbin/pppd/auth.c4
1 files changed, 2 insertions, 2 deletions
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 <stdio.h>
@@ -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;
}
OpenPOWER on IntegriCloud