From a2e4d2f463551ed6bf9a8bf60320724037df1ea7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 12 Jan 2006 03:40:08 +0000 Subject: [PATCH] Fix prev commit --- servers/slapd/controls.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/slapd/controls.c b/servers/slapd/controls.c index 426b9cb02c..a8ce25a7ce 100644 --- a/servers/slapd/controls.c +++ b/servers/slapd/controls.c @@ -194,7 +194,7 @@ static struct slap_control control_defs[] = { SLAP_CTRL_GLOBAL|SLAP_CTRL_ACCESS, proxy_authz_extops, NULL, parseProxyAuthz, LDAP_SLIST_ENTRY_INITIALIZER(next) }, - { NULL, 0, 0, NULL, 0, LDAP_SLIST_ENTRY_INITIALIZER(next) } + { NULL, 0, 0, NULL, 0, NULL, LDAP_SLIST_ENTRY_INITIALIZER(next) } }; static struct slap_control * @@ -286,7 +286,8 @@ register_supported_control2(const char *controloid, } else { if ( sc->sc_extendedopsbv ) { - ber_bvarray_free( sc->sc_extendedops ); + ber_bvarray_free( sc->sc_extendedopsbv ); + sc->sc_extendedopsbv = NULL; sc->sc_extendedops = NULL; } }