From bb9d8a0f2065d0f88a1ae391bc12b725c517f6c1 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 8 Jun 2000 23:12:52 +0000 Subject: [PATCH] Initialize peername with EOS. --- servers/slapd/daemon.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; -- 2.39.5