mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
make sure sun_path is cleared out before accept()
This commit is contained in:
parent
7b4a51cc28
commit
614e5a9de6
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user