1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

tldap: Slightly simplify tldap_search_cb

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Volker Lendecke 2015-12-21 21:28:35 +01:00 committed by Günther Deschner
parent 22f06c2e6f
commit 3673752f68

View File

@ -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;
}