diff options
-rw-r--r-- | source4/libcli/finddcs_cldap.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/libcli/finddcs_cldap.c b/source4/libcli/finddcs_cldap.c index 6df15a9b4e..359ec70c8c 100644 --- a/source4/libcli/finddcs_cldap.c +++ b/source4/libcli/finddcs_cldap.c @@ -213,7 +213,12 @@ static void finddcs_cldap_next_server(struct finddcs_cldap_state *state) state->srv_addresses[state->srv_address_index], 389, &dest); - if (tevent_req_error(state->req, ret)) { + if (ret == 0) { + status = NT_STATUS_OK; + } else { + status = map_nt_error_from_unix_common(errno); + } + if (tevent_req_nterror(state->req, status)) { return; } |