diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-05 19:58:28 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-06 20:43:19 +0200 |
commit | fc037e029e23aeaa8debe1c17cf81bd3a859ae4a (patch) | |
tree | b60bf58f80aa7c80fd94034eb29920602a256a45 | |
parent | 2fbb8c08ef6042a7f479e3d9ef36ba7cc730de79 (diff) | |
download | samba-fc037e029e23aeaa8debe1c17cf81bd3a859ae4a.tar.gz samba-fc037e029e23aeaa8debe1c17cf81bd3a859ae4a.tar.bz2 samba-fc037e029e23aeaa8debe1c17cf81bd3a859ae4a.zip |
s4:descriptor LDB module - cosmetic fixup
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/descriptor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/descriptor.c b/source4/dsdb/samdb/ldb_modules/descriptor.c index cfab5a0f9a..08754eda44 100644 --- a/source4/dsdb/samdb/ldb_modules/descriptor.c +++ b/source4/dsdb/samdb/ldb_modules/descriptor.c @@ -399,12 +399,12 @@ static int get_search_callback(struct ldb_request *req, struct ldb_reply *ares) switch (ares->type) { case LDB_REPLY_ENTRY: - if (ac->search_res != NULL) { + if (ac->search_res != NULL) { ldb_set_errstring(ldb, "Too many results"); talloc_free(ares); return ldb_module_done(ac->req, NULL, NULL, LDB_ERR_OPERATIONS_ERROR); - } + } ac->search_res = talloc_steal(ac, ares); break; @@ -449,12 +449,12 @@ static int get_search_oc_callback(struct ldb_request *req, struct ldb_reply *are switch (ares->type) { case LDB_REPLY_ENTRY: - if (ac->search_oc_res != NULL) { + if (ac->search_oc_res != NULL) { ldb_set_errstring(ldb, "Too many results"); talloc_free(ares); return ldb_module_done(ac->req, NULL, NULL, LDB_ERR_OPERATIONS_ERROR); - } + } ac->search_oc_res = talloc_steal(ac, ares); break; |