ldap/servers/slapd/connection.c | 3 ---
1 file changed, 3 deletions(-)
New commits:
commit b96806c00fe5bb63d19f37989c15461121b09078
Author: William Brown <firstyear(a)redhat.com>
Date: Thu Oct 6 10:45:31 2016 +1000
Ticket 48996 - remove unused variable.
Bug Description: During the cleanup I forgot to remove the enable_listeners
variable
Fix Description: Remove it.
https://fedorahosted.org/389/ticket/48996
Author: wibrown
Review by: One line rule.
diff --git a/ldap/servers/slapd/connection.c b/ldap/servers/slapd/connection.c
index 7a054c5..11f9acf 100644
--- a/ldap/servers/slapd/connection.c
+++ b/ldap/servers/slapd/connection.c
@@ -168,8 +168,6 @@ connection_done(Connection *conn)
void
connection_cleanup(Connection *conn)
{
- int enable_listeners = 0;
-
bind_credentials_clear( conn, PR_FALSE /* do not lock conn */,
PR_TRUE /* clear external creds. */ );
slapi_ch_free((void**)&conn->c_authtype);
@@ -186,7 +184,6 @@ connection_cleanup(Connection *conn)
if (conn->c_prfd)
{
PR_Close(conn->c_prfd);
- enable_listeners = 1; /* re-enable listeners disabled due to no fds */
}
conn->c_sd= SLAPD_INVALID_SOCKET;