summaryrefslogtreecommitdiff
path: root/libexec/tcpd/tcpdchk/scaffold.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/tcpd/tcpdchk/scaffold.c')
-rw-r--r--libexec/tcpd/tcpdchk/scaffold.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/tcpd/tcpdchk/scaffold.c b/libexec/tcpd/tcpdchk/scaffold.c
index 4d8c62b9d98..14bf223b526 100644
--- a/libexec/tcpd/tcpdchk/scaffold.c
+++ b/libexec/tcpd/tcpdchk/scaffold.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scaffold.c,v 1.1 1997/02/26 06:17:07 downsj Exp $ */
+/* $OpenBSD: scaffold.c,v 1.2 1999/06/06 15:34:57 deraadt Exp $ */
/*
* Routines for testing only. Not really industrial strength.
@@ -10,7 +10,7 @@
#if 0
static char sccs_id[] = "@(#) scaffold.c 1.5 95/01/03 09:13:48";
#else
-static char rcsid[] = "$OpenBSD: scaffold.c,v 1.1 1997/02/26 06:17:07 downsj Exp $";
+static char rcsid[] = "$OpenBSD: scaffold.c,v 1.2 1999/06/06 15:34:57 deraadt Exp $";
#endif
#endif
@@ -93,7 +93,7 @@ char *host;
/*
* Host address: translate it to internal form.
*/
- if ((addr.s_addr = dot_quad_addr(host)) != INADDR_NONE) {
+ if (dot_quad_addr(host, &addr.s_addr)) {
h.h_addr_list = addr_list;
h.h_addr_list[0] = (char *) &addr;
h.h_length = sizeof(addr);