r12733: Merge ldap/ldb controls into main tree
[mdw/samba.git] / source4 / lib / ldb / ldb_tdb / ldb_index.c
index 75514fac83bc22de7a624323129eeb6108fab5e1..cf9ad3b7fea722dbe8b88a393d94c267ba01c15b 100644 (file)
@@ -709,6 +709,7 @@ int ltdb_search_indexed(struct ldb_module *module,
        }
        (*res)->count = 0;
        (*res)->msgs = NULL;
+       (*res)->controls = NULL;
 
        if (scope == LDB_SCOPE_BASE) {
                /* with BASE searches only one DN can match */