From: Howard Chu Date: Thu, 12 Jan 2006 03:40:08 +0000 (+0000) Subject: Fix prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~342 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a2e4d2f463551ed6bf9a8bf60320724037df1ea7;p=openldap Fix prev commit --- 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; } }