Skip to content
Snippets Groups Projects
Commit bb9d8a0f authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Initialize peername with EOS.

parent f6529c72
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment