From: Kurt Zeilenga Date: Thu, 8 Jun 2000 23:12:52 +0000 (+0000) Subject: Initialize peername with EOS. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2698 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bb9d8a0f2065d0f88a1ae391bc12b725c517f6c1;p=openldap Initialize peername with EOS. --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index dd4e1e9cb9..2279666dda 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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;