Commit f0acc0d7 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#6676

parent 219aee02
...@@ -19,6 +19,7 @@ OpenLDAP 2.4.24 Engineering ...@@ -19,6 +19,7 @@ OpenLDAP 2.4.24 Engineering
Fixed slapo-ppolicy don't update opattrs on consumers (ITS#6608) Fixed slapo-ppolicy don't update opattrs on consumers (ITS#6608)
Fixed slapo-sssvlv initialization (ITS#6649) Fixed slapo-sssvlv initialization (ITS#6649)
Fixed slapo-syncprov to send error if consumer is newer (ITS#6606) Fixed slapo-syncprov to send error if consumer is newer (ITS#6606)
Fixed contrib/nssov to only close socket on shutdown (ITS#6676)
Documentation Documentation
admin24 guide typo fixes (ITS#6609) admin24 guide typo fixes (ITS#6609)
......
...@@ -879,18 +879,20 @@ nssov_db_close( ...@@ -879,18 +879,20 @@ nssov_db_close(
slap_overinst *on = (slap_overinst *)be->bd_info; slap_overinst *on = (slap_overinst *)be->bd_info;
nssov_info *ni = on->on_bi.bi_private; nssov_info *ni = on->on_bi.bi_private;
/* close socket if it's still in use */ if ( slapMode & SLAP_SERVER_MODE ) {
if (ni->ni_socket >= 0); /* close socket if it's still in use */
{ if (ni->ni_socket >= 0);
if (close(ni->ni_socket)) {
Debug( LDAP_DEBUG_ANY,"problem closing server socket (ignored): %s",strerror(errno),0,0); if (close(ni->ni_socket))
ni->ni_socket = -1; Debug( LDAP_DEBUG_ANY,"problem closing server socket (ignored): %s",strerror(errno),0,0);
} ni->ni_socket = -1;
/* remove existing named socket */ }
if (unlink(NSLCD_SOCKET)<0) /* remove existing named socket */
{ if (unlink(NSLCD_SOCKET)<0)
Debug( LDAP_DEBUG_TRACE,"unlink() of "NSLCD_SOCKET" failed (ignored): %s", {
strerror(errno),0,0); Debug( LDAP_DEBUG_TRACE,"unlink() of "NSLCD_SOCKET" failed (ignored): %s",
strerror(errno),0,0);
}
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment