From: Howard Chu Date: Mon, 11 Feb 2008 08:53:11 +0000 (+0000) Subject: ITS#5368 partially revert 1.239 X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~169 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d64f5be10537e1420983c9631a9687608761a111;p=openldap ITS#5368 partially revert 1.239 --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index f794a99f87..3d728339a3 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -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 ) {