ITS#5368 partially revert 1.239

This commit is contained in:
Howard Chu 2008-02-11 08:53:11 +00:00
parent 525f266d10
commit d64f5be105

View 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 ) {