]> git.sur5r.net Git - openldap/commitdiff
do not return entry pointer in case of failure
authorPierangelo Masarati <ando@openldap.org>
Mon, 26 Apr 2004 22:46:13 +0000 (22:46 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 26 Apr 2004 22:46:13 +0000 (22:46 +0000)
servers/slapd/back-ldbm/search.c

index 4db79f7740ae3a97f74842abbca00a704d0cf2a1..960209ba12dd7d9060334f016dad953522abe8dd 100644 (file)
@@ -428,6 +428,7 @@ searchit:
                                if ( --op->ors_slimit == -1 ) {
                                        cache_return_entry_r( &li->li_cache, e );
                                        rs->sr_err = LDAP_SIZELIMIT_EXCEEDED;
+                                       rs->sr_entry = NULL;
                                        send_ldap_result( op, rs );
                                        rc = LDAP_SUCCESS;
                                        goto done;