From 614e5a9de602a958f02dc88a3c24abbcc1386ba8 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 30 Jul 2004 09:56:22 +0000 Subject: [PATCH] make sure sun_path is cleared out before accept() --- servers/slapd/daemon.c | 5 +++++ 1 file changed, 5 insertions(+) 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 ) { -- 2.39.5