Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libwrap Allow passing NULL for check only.
details: https://anonhg.NetBSD.org/src/rev/55e198d71eda
branches: trunk
changeset: 472832:55e198d71eda
user: christos <christos%NetBSD.org@localhost>
date: Sun May 09 16:07:56 1999 +0000
description:
Allow passing NULL for check only.
diffstat:
lib/libwrap/misc.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r fa40ff71815e -r 55e198d71eda lib/libwrap/misc.c
--- a/lib/libwrap/misc.c Sun May 09 16:07:20 1999 +0000
+++ b/lib/libwrap/misc.c Sun May 09 16:07:56 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: misc.c,v 1.3 1999/05/09 16:03:11 christos Exp $ */
+/* $NetBSD: misc.c,v 1.4 1999/05/09 16:07:56 christos Exp $ */
/*
* Misc routines that are used by tcpd and by tcpdchk.
@@ -11,7 +11,7 @@
#if 0
static char sccsic[] = "@(#) misc.c 1.2 96/02/11 17:01:29";
#else
-__RCSID("$NetBSD: misc.c,v 1.3 1999/05/09 16:03:11 christos Exp $");
+__RCSID("$NetBSD: misc.c,v 1.4 1999/05/09 16:07:56 christos Exp $");
#endif
#endif
@@ -78,6 +78,7 @@
if (!inet_aton(str, &a))
return -1;
- *addr = a.s_addr;
+ if (addr)
+ *addr = a.s_addr;
return 0;
}
Home |
Main Index |
Thread Index |
Old Index