From: Pierangelo Masarati Date: Mon, 22 Mar 2010 21:50:32 +0000 (+0000) Subject: handle valid non-entry internal search responses (ITS#6481) X-Git-Tag: MIGRATION_CVS2GIT~664 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b8472e375663360c98c0e375019a53e325ec612b;p=openldap handle valid non-entry internal search responses (ITS#6481) --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index bbd89fbd38..f1e51eac3e 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -2132,7 +2132,16 @@ acl_set_cb_gather( Operation *op, SlapReply *rs ) } } else { - assert( rs->sr_type == REP_RESULT ); + switch ( rs->sr_type ) { + case REP_SEARCHREF: + case REP_INTERMEDIATE: + /* ignore */ + break; + + default: + assert( rs->sr_type == REP_RESULT ); + break; + } } return 0;