From: Howard Chu Date: Sat, 26 Oct 2002 22:41:26 +0000 (+0000) Subject: Fix ITS#2157, server should never attempt to unlink the client's socket. X-Git-Tag: NO_SLAP_OP_BLOCKS~833 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=322a800c26a374ed545449366f71a198cbc48fb3;p=openldap Fix ITS#2157, server should never attempt to unlink the client's socket. It likely has no name anyway, and the client owns it after all. --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 64a591dd55..aeed4237b8 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -635,22 +635,6 @@ connection_destroy( Connection *c ) } c->c_peer_domain.bv_len = 0; if(c->c_peer_name.bv_val != NULL) { -#ifdef LDAP_PF_LOCAL - /* - * If peer was a domain socket, unlink. Mind you, - * they may be un-named. Should we leave this to - * the client? - */ - if (strncmp(c->c_peer_name.bv_val, "PATH=", - sizeof("PATH=") - 1) == 0) { - char *path = c->c_peer_name.bv_val - + sizeof("PATH=") - 1; - if (path[0] != '\0') { - (void)unlink(path); - } - } -#endif /* LDAP_PF_LOCAL */ - free(c->c_peer_name.bv_val); c->c_peer_name.bv_val = NULL; }