NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/40340 CVS commit: src/usr.sbin/inetd



> Module Name:  src
> Committed By: christos
> Date:         Thu Jan  8 18:29:43 UTC 2009
> 
> Modified Files:
>       src/usr.sbin/inetd: inetd.c
> 
> Log Message:
> PR/40340: Ed Ravin: Print the numeric address in addition to the hostname.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -r1.108 -r1.109 src/usr.sbin/inetd/inetd.c

It prints bound address of inetd. (ordinarily INADDR_ANY)
by right, below patch?

Index: inetd.c
===================================================================
RCS file: /src/cvs/cvsroot/netbsd/src/usr.sbin/inetd/inetd.c,v
retrieving revision 1.111
diff -a -u -3 -r1.111 inetd.c
--- inetd.c     15 Apr 2009 08:38:37 -0000      1.111
+++ inetd.c     20 May 2009 18:49:34 -0000
@@ -672,7 +672,7 @@
                        }
                        service = buf;
                        sockaddr_snprintf(abuf, sizeof(abuf), "%a",
-                           &sep->se_ctrladdr);
+                           req.client->sin);
                }
                if (denied) {
                        syslog(deny_severity,



Thanks.
--
ryo shimizu


Home | Main Index | Thread Index | Old Index