summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>2000-03-30 10:46:19 +0000
committerbrian <brian@cvs.openbsd.org>2000-03-30 10:46:19 +0000
commit2995dd2fe3905a085c7ea17930a26d47044d9c2f (patch)
treecd82069fd15718b60dfad2feb54853eca7d41d23 /usr.sbin
parent9ae4b992dcaef89a6287483330ebb4283a58d93b (diff)
Correct address parsing
Pointed out by: Maxim Sobolev <sobomax@altavista.net>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/ppp/filter.c4
1 files 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;
}