Module Name: src
Committed By: christos
Date: Sat May 23 03:24:51 UTC 2009
Modified Files:
src/usr.sbin/inetd: inetd.c
Log Message:
print the proper client address (ryo shimizu)
To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/usr.sbin/inetd/inetd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/inetd/inetd.c
diff -u src/usr.sbin/inetd/inetd.c:1.111 src/usr.sbin/inetd/inetd.c:1.112
--- src/usr.sbin/inetd/inetd.c:1.111 Wed Apr 15 04:38:37 2009
+++ src/usr.sbin/inetd/inetd.c Fri May 22 23:24:51 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: inetd.c,v 1.111 2009/04/15 08:38:37 lukem Exp $ */
+/* $NetBSD: inetd.c,v 1.112 2009/05/23 03:24:51 christos Exp $ */
/*-
* Copyright (c) 1998, 2003 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
#if 0
static char sccsid[] = "@(#)inetd.c 8.4 (Berkeley) 4/13/94";
#else
-__RCSID("$NetBSD: inetd.c,v 1.111 2009/04/15 08:38:37 lukem Exp $");
+__RCSID("$NetBSD: inetd.c,v 1.112 2009/05/23 03:24:51 christos Exp $");
#endif
#endif /* not lint */
@@ -672,7 +672,7 @@
}
service = buf;
sockaddr_snprintf(abuf, sizeof(abuf), "%a",
- &sep->se_ctrladdr);
+ req.client->sin);
}
if (denied) {
syslog(deny_severity,