From: Kurt Zeilenga Date: Mon, 4 Mar 2002 21:28:46 +0000 (+0000) Subject: Fix callback initializer. X-Git-Tag: OPENLDAP_REL_ENG_2_MP~377 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d89f398a948999e4fcf3421635ea716a57efb29;p=openldap Fix callback initializer. --- diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index 4d7f479e7c..e88838e7be 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -488,7 +488,7 @@ int slap_sasl_match( char *rule, struct berval *assertDN, struct berval *authc ) Filter *filter=NULL; regex_t reg; smatch_info sm; - slap_callback cb = {sasl_sc_r, sasl_sc_s, sasl_sc_smatch, &sm}; + slap_callback cb = { sasl_sc_r, sasl_sc_s, sasl_sc_smatch, NULL }; Operation op = {0}; #ifdef NEW_LOGGING @@ -539,6 +539,7 @@ int slap_sasl_match( char *rule, struct berval *assertDN, struct berval *authc ) sm.dn = assertDN; sm.match = 0; + cb.sc_private = &sm; ldap_pvt_thread_mutex_init( &op.o_abandonmutex ); op.o_tag = LDAP_REQ_SEARCH;