]> git.sur5r.net Git - openldap/commitdiff
ITS#5368 partially revert 1.239
authorHoward Chu <hyc@openldap.org>
Mon, 11 Feb 2008 08:53:11 +0000 (08:53 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 11 Feb 2008 08:53:11 +0000 (08:53 +0000)
servers/slapd/sasl.c

index f794a99f8790b04eaeab111621e110cb308ec7b6..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 ) {