]> git.sur5r.net Git - openldap/commitdiff
return error code only if required (ITS#3042)
authorPierangelo Masarati <ando@openldap.org>
Sat, 3 Apr 2004 12:15:33 +0000 (12:15 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 3 Apr 2004 12:15:33 +0000 (12:15 +0000)
servers/slapd/back-meta/compare.c

index 4f0d06548f7d9ee3e28280817c0f5a4d6dd35905..30314eb9f672435ea5ae9adf69ae8f066def5ad5 100644 (file)
@@ -258,7 +258,9 @@ finish:;
                ldap_back_dn_massage( &dc, &matched, &mmatch );
        }
 
-       rs->sr_err = rres;
+       if ( rres != LDAP_SUCCESS ) {
+               rs->sr_err = rres;
+       }
        rs->sr_matched = mmatch.bv_val;
        send_ldap_result( op, rs );
        rs->sr_matched = NULL;