From 3673752f682dea1eda6581c8ec15b510b4d3b0f8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 21 Dec 2015 21:28:35 +0100 Subject: tldap: Slightly simplify tldap_search_cb Signed-off-by: Volker Lendecke Reviewed-by: Guenther Deschner --- source3/lib/tldap.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source3/lib') 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; } -- cgit v1.2.1