From: Howard Chu Date: Mon, 7 Apr 2003 11:49:40 +0000 (+0000) Subject: Fix freeval check X-Git-Tag: AUTOCONF_2_57~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7972ebe66f02f4c288079f7ae9cd184d5e9d4002;p=openldap Fix freeval check --- diff --git a/servers/slapd/back-ldap/compare.c b/servers/slapd/back-ldap/compare.c index 3d8230386d..485929dbcf 100644 --- a/servers/slapd/back-ldap/compare.c +++ b/servers/slapd/back-ldap/compare.c @@ -100,7 +100,7 @@ ldap_back_compare( ldap_back_dn_massage( &dc, &op->orc_ava->aa_value, &mapped_val ); if (mapped_val.bv_val == NULL || mapped_val.bv_val[0] == '\0') { mapped_val = op->orc_ava->aa_value; - } else { + } else if (mapped_val.bv_val != op->orc_ava->aa_value) { freeval = 1; } }