]> git.sur5r.net Git - openldap/commitdiff
Add search no-op support.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 29 Jan 2002 04:33:19 +0000 (04:33 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 29 Jan 2002 04:33:19 +0000 (04:33 +0000)
servers/slapd/back-bdb/search.c

index f4ee315c1b9587107d62d8a19be51271205df8fb..6b3447ef5ce4d15f109a1d5a4dc21fe779da42e4 100644 (file)
@@ -428,8 +428,14 @@ bdb_search(
                                }
 
                                if (e) {
-                                       int result = send_search_entry( be, conn, op,
-                                               e, attrs, attrsonly, NULL);
+                                       int result;
+                                       
+                                       if( op->o_noop ) {
+                                               result = 0;
+                                       } else {
+                                               result = send_search_entry( be, conn, op,
+                                                       e, attrs, attrsonly, NULL);
+                                       }
 
                                        switch (result) {
                                        case 0:         /* entry sent ok */