]> git.sur5r.net Git - openldap/commitdiff
Fix freeval check
authorHoward Chu <hyc@openldap.org>
Mon, 7 Apr 2003 11:49:40 +0000 (11:49 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 7 Apr 2003 11:49:40 +0000 (11:49 +0000)
servers/slapd/back-ldap/compare.c

index 3d8230386deb00dd00d352365d0ce9726f23a093..485929dbcfbb69bd384598b936544b1c996bc484 100644 (file)
@@ -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;
                        }
                }