From: Volker Lendecke Date: Mon, 21 Dec 2015 20:28:35 +0000 (+0100) Subject: tldap: Slightly simplify tldap_search_cb X-Git-Tag: tevent-0.9.27~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3673752f682dea1eda6581c8ec15b510b4d3b0f8;p=thirdparty%2Fsamba.git tldap: Slightly simplify tldap_search_cb Signed-off-by: Volker Lendecke Reviewed-by: Guenther Deschner --- 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; }