From d7be822a2a501b4045feae488ae464f64317d9b4 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 19 Aug 2006 06:27:11 +0000 Subject: [PATCH] Fix prev commit --- servers/slapd/daemon.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 7e8dca9508..fecc892846 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -528,7 +528,8 @@ void slapd_remove( SLAP_DEL_SOCK(s); - ber_sockbuf_free(sb); + if ( sb ) + ber_sockbuf_free(sb); /* If we ran out of file descriptors, we dropped a listener from * the select() loop. Now that we're removing a session from our @@ -1265,7 +1266,7 @@ close_listeners( Listener *lr = slap_listeners[l]; if ( lr->sl_sd != AC_SOCKET_INVALID ) { - if ( remove ) slapd_remove( lr->sl_sd, 0, 0, 0 ); + if ( remove ) slapd_remove( lr->sl_sd, NULL, 0, 0, 0 ); #ifdef LDAP_PF_LOCAL if ( lr->sl_sa.sa_addr.sa_family == AF_LOCAL ) {