make sure sun_path is cleared out before accept()

This commit is contained in:
Pierangelo Masarati 2004-07-30 09:56:22 +00:00
parent 7b4a51cc28
commit 614e5a9de6

View File

@ -1540,6 +1540,11 @@ slapd_daemon_task(
FD_CLR( slap_listeners[l]->sl_sd, &readfds );
FD_CLR( slap_listeners[l]->sl_sd, &writefds );
# ifdef LDAP_PF_LOCAL
/* FIXME: apparently accept doesn't fill
* the sun_path sun_path member */
from.sa_un_addr.sun_path[0] = '\0';
# endif /* LDAP_PF_LOCAL */
s = accept( slap_listeners[l]->sl_sd,
(struct sockaddr *) &from, &len );
if ( s == AC_SOCKET_INVALID ) {