Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libwrap fix behavior for configuration like "ALL: 127.".
details: https://anonhg.NetBSD.org/src/rev/2b462957dce3
branches: trunk
changeset: 476237:2b462957dce3
user: itojun <itojun%NetBSD.org@localhost>
date: Fri Sep 10 08:59:47 1999 +0000
description:
fix behavior for configuration like "ALL: 127.".
From: Mason Loring Bliss <mason%acheron.middleboro.ma.us@localhost>
diffstat:
lib/libwrap/socket.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e4a25a172850 -r 2b462957dce3 lib/libwrap/socket.c
--- a/lib/libwrap/socket.c Fri Sep 10 08:42:58 1999 +0000
+++ b/lib/libwrap/socket.c Fri Sep 10 08:59:47 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: socket.c,v 1.7 1999/08/31 13:58:58 itojun Exp $ */
+/* $NetBSD: socket.c,v 1.8 1999/09/10 08:59:47 itojun Exp $ */
/*
* This module determines the type of socket (datagram, stream), the client
@@ -22,7 +22,7 @@
#if 0
static char sccsid[] = "@(#) socket.c 1.15 97/03/21 19:27:24";
#else
-__RCSID("$NetBSD: socket.c,v 1.7 1999/08/31 13:58:58 itojun Exp $");
+__RCSID("$NetBSD: socket.c,v 1.8 1999/09/10 08:59:47 itojun Exp $");
#endif
#endif
@@ -140,7 +140,7 @@
if (!sa)
return;
- switch (sa->sa_family) {
+ switch (af = sa->sa_family) {
case AF_INET:
ap = (char *)&((struct sockaddr_in *)sa)->sin_addr;
alen = sizeof(struct in_addr);
Home |
Main Index |
Thread Index |
Old Index