]> git.sur5r.net Git - openldap/commitdiff
Fix callback initializer.
authorKurt Zeilenga <kurt@openldap.org>
Mon, 4 Mar 2002 21:28:46 +0000 (21:28 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 4 Mar 2002 21:28:46 +0000 (21:28 +0000)
servers/slapd/saslauthz.c

index 4d7f479e7c79a02e65ec25a1e56b5c0fd9001032..e88838e7be92db014e156fedb014565130d915a1 100644 (file)
@@ -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;