git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22f06c2
)
tldap: Slightly simplify tldap_search_cb
author
Volker Lendecke
<vl@samba.org>
Mon, 21 Dec 2015 20:28:35 +0000
(21:28 +0100)
committer
Günther Deschner
<gd@samba.org>
Wed, 3 Feb 2016 14:04:11 +0000
(15:04 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/lib/tldap.c
patch
|
blob
|
history
diff --git
a/source3/lib/tldap.c
b/source3/lib/tldap.c
index 4c2319c8beab156fcfff8260fb491b00037d6f7f..8476032c8911b9e7aecfef4440ef97b94cd9a377 100644
(file)
--- a/
source3/lib/tldap.c
+++ b/
source3/lib/tldap.c
@@
-1788,11
+1788,10
@@
static void tldap_search_cb(struct tevent_req *req)
(struct tldap_sync_search_state *)
tevent_req_callback_data_void(req);
struct tldap_message *msg, **tmp;
- int
rc,
num_entries, num_refs;
+ int num_entries, num_refs;
- rc = tldap_search_recv(req, talloc_tos(), &msg);
- if (rc != TLDAP_SUCCESS) {
- state->rc = rc;
+ state->rc = tldap_search_recv(req, talloc_tos(), &msg);
+ if (state->rc != TLDAP_SUCCESS) {
return;
}