]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/sasl.c
fix typo
[openldap] / servers / slapd / sasl.c
index 95b2394ed4c8fe4b77426c31100e623122d7e81c..3d728339a3ef1f712402402a06c6ad73c79762a9 100644 (file)
@@ -216,7 +216,8 @@ sasl_ap_lookup( Operation *op, SlapReply *rs )
                                         * past the scheme name, skip this value.
                                         */
 #ifdef SLAPD_CLEARTEXT
-                                       if ( !ber_bvstrcasecmp( bv, &sc_cleartext ) ) {
+                                       if ( !strncasecmp( bv->bv_val, sc_cleartext.bv_val,
+                                               sc_cleartext.bv_len )) {
                                                struct berval cbv;
                                                cbv.bv_len = bv->bv_len - sc_cleartext.bv_len;
                                                if ( cbv.bv_len > 0 ) {
@@ -829,7 +830,7 @@ static int chk_sasl(
        rtn = LUTIL_PASSWD_ERR;
 
        ctx = ldap_pvt_thread_pool_context();
-       ldap_pvt_thread_pool_getkey( ctx, slap_sasl_bind, &sconn, NULL );
+       ldap_pvt_thread_pool_getkey( ctx, (void *)slap_sasl_bind, &sconn, NULL );
 
        if( sconn != NULL ) {
                int sc;