]> git.sur5r.net Git - openldap/commitdiff
Initialize peername with EOS.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 8 Jun 2000 23:12:52 +0000 (23:12 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 8 Jun 2000 23:12:52 +0000 (23:12 +0000)
servers/slapd/daemon.c

index dd4e1e9cb9aef3678b171772225d687756c57bbb..2279666ddad624012b36268538333f8c2af04077 100644 (file)
@@ -835,13 +835,14 @@ slapd_daemon_task(
                        char    *peeraddr;
 #ifdef LDAP_PF_LOCAL
                        char    peername[MAXPATHLEN + sizeof("PATH=")];
-#else
-#  ifdef LDAP_INET6
+#elif defined(LDAP_INET6)
                        char    peername[sizeof("IP=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 65535")];
-#  else
+#else
                        char    peername[sizeof("IP=255.255.255.255:65336")];
-#  endif
 #endif /* LDAP_PF_LOCAL */
+
+                       peername[0] = '\0';
+
                        if ( slap_listeners[l]->sl_sd == AC_SOCKET_INVALID )
                                continue;