From 2995dd2fe3905a085c7ea17930a26d47044d9c2f Mon Sep 17 00:00:00 2001 From: brian Date: Thu, 30 Mar 2000 10:46:19 +0000 Subject: Correct address parsing Pointed out by: Maxim Sobolev --- usr.sbin/ppp/ppp/filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ppp/ppp/filter.c b/usr.sbin/ppp/ppp/filter.c index bffcfd8555e..fdc4628f9c9 100644 --- a/usr.sbin/ppp/ppp/filter.c +++ b/usr.sbin/ppp/ppp/filter.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $OpenBSD: filter.c,v 1.14 2000/03/29 09:32:26 brian Exp $ + * $OpenBSD: filter.c,v 1.15 2000/03/30 10:46:18 brian Exp $ * * TODO: Should send ICMP error message when we discard packets. */ @@ -113,7 +113,7 @@ ParseAddr(struct ipcp *ipcp, const char *data, strncpy(s, data, len); s[len] = '\0'; *paddr = GetIpAddr(s); - if (paddr->s_addr == INADDR_ANY || paddr->s_addr == INADDR_NONE) { + if (paddr->s_addr == INADDR_NONE) { log_Printf(LogWARN, "ParseAddr: %s: Bad address\n", s); return 0; } -- cgit v1.2.3