]> git.sur5r.net Git - openldap/commitdiff
handle valid non-entry internal search responses (ITS#6481)
authorPierangelo Masarati <ando@openldap.org>
Mon, 22 Mar 2010 21:50:32 +0000 (21:50 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 22 Mar 2010 21:50:32 +0000 (21:50 +0000)
servers/slapd/acl.c

index bbd89fbd3812edaddc6b3c644ae21bb4d33d7f73..f1e51eac3ee64a080d855c62b662e708d10d9c1f 100644 (file)
@@ -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;