diff options
-rw-r--r-- | usr.sbin/pppd/auth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c index 50de16d37f0..fd12cf11ab9 100644 --- a/usr.sbin/pppd/auth.c +++ b/usr.sbin/pppd/auth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth.c,v 1.16 1999/08/06 20:41:07 deraadt Exp $ */ +/* $OpenBSD: auth.c,v 1.17 2001/01/01 09:30:42 angelos Exp $ */ /* * auth.c - PPP authentication and phase control. @@ -38,7 +38,7 @@ #if 0 static char rcsid[] = "Id: auth.c,v 1.37 1998/03/26 04:46:03 paulus Exp $"; #else -static char rcsid[] = "$OpenBSD: auth.c,v 1.16 1999/08/06 20:41:07 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: auth.c,v 1.17 2001/01/01 09:30:42 angelos Exp $"; #endif #endif @@ -1236,7 +1236,7 @@ ip_addr_check(addr, addrs) } hp = gethostbyname(ptr_word); - if (hp != NULL && hp->h_addrtype == AF_INET) { + if (hp != NULL && hp->h_addrtype == AF_INET && hp->h_name != NULL) { ina.s_addr = *(u_int32_t *)hp->h_addr; mask = ~ (u_int32_t) 0; /* are we sure we want this? */ } else { |