Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/inetd correct udp-from-broadcast check. From: andr...
details: https://anonhg.NetBSD.org/src/rev/b5a8ebc245d9
branches: trunk
changeset: 533574:b5a8ebc245d9
user: itojun <itojun%NetBSD.org@localhost>
date: Thu Jul 04 12:35:19 2002 +0000
description:
correct udp-from-broadcast check. From: andre%ae-35.com@localhost
diffstat:
usr.sbin/inetd/inetd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8fab210c5499 -r b5a8ebc245d9 usr.sbin/inetd/inetd.c
--- a/usr.sbin/inetd/inetd.c Thu Jul 04 12:24:40 2002 +0000
+++ b/usr.sbin/inetd/inetd.c Thu Jul 04 12:35:19 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inetd.c,v 1.82 2002/06/05 10:03:31 itojun Exp $ */
+/* $NetBSD: inetd.c,v 1.83 2002/07/04 12:35:19 itojun Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
#if 0
static char sccsid[] = "@(#)inetd.c 8.4 (Berkeley) 4/13/94";
#else
-__RCSID("$NetBSD: inetd.c,v 1.82 2002/06/05 10:03:31 itojun Exp $");
+__RCSID("$NetBSD: inetd.c,v 1.83 2002/07/04 12:35:19 itojun Exp $");
#endif
#endif /* not lint */
@@ -2521,7 +2521,7 @@
if (ifa->ifa_addr->sa_family != AF_INET ||
(ifa->ifa_flags & IFF_BROADCAST) == 0)
continue;
- sin = (struct sockaddr_in *)ifa->ifa_addr;
+ sin = (struct sockaddr_in *)ifa->ifa_broadaddr;
if (sin->sin_addr.s_addr == in->s_addr) {
freeifaddrs(ifap);
return (1);
Home |
Main Index |
Thread Index |
Old Index