From: Pierangelo Masarati Date: Fri, 30 Jul 2004 09:56:22 +0000 (+0000) Subject: make sure sun_path is cleared out before accept() X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=614e5a9de602a958f02dc88a3c24abbcc1386ba8;p=openldap make sure sun_path is cleared out before accept() --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index cfa9873631..fe85302d60 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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 ) {