INN commit: branches/2.5/innd (rc.c)

INN Commit rra at isc.org
Sat Aug 22 18:12:54 UTC 2009


    Date: Saturday, August 22, 2009 @ 11:12:54
  Author: iulius
Revision: 8598

Silent gcc warnings for a possibly uninitialized variable.

Modified:
  branches/2.5/innd/rc.c

------+
 rc.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: rc.c
===================================================================
--- rc.c	2009-08-22 18:11:55 UTC (rev 8597)
+++ rc.c	2009-08-22 18:12:54 UTC (rev 8598)
@@ -123,7 +123,8 @@
 {
 #define PORT_IDENTD 113
     char IDENTuser[80];
-    struct sockaddr *s_local, *s_distant;
+    struct sockaddr *s_local;
+    struct sockaddr *s_distant = NULL;
     int ident_fd;
     socklen_t len;
     int port1,port2;
@@ -142,7 +143,7 @@
     s_distant = xmalloc(sizeof(struct sockaddr_storage));
     len = sizeof(struct sockaddr_storage);
     if ((getpeername(fd, s_distant, &len)) < 0) {
-	syslog(L_ERROR, "can't do getsockname for identd");
+	syslog(L_ERROR, "can't do getpeername for identd");
         goto fail;
     }
 #ifdef HAVE_INET6




More information about the inn-committers mailing list