summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-12-21 21:28:35 +0100
committerGünther Deschner <gd@samba.org>2016-02-03 15:04:11 +0100
commit3673752f682dea1eda6581c8ec15b510b4d3b0f8 (patch)
treeacd57a3ad300e9f6ed70e13006a14d0342a0b15c /source3/lib
parent22f06c2e6f8659f13d9497d7480c988c62bf15b7 (diff)
downloadsamba-3673752f682dea1eda6581c8ec15b510b4d3b0f8.tar.gz
tldap: Slightly simplify tldap_search_cb
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/tldap.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c
index 4c2319c8bea..8476032c891 100644
--- 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;
}