diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/ldap/ldap_client.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/libcli/ldap/ldap_client.c b/source4/libcli/ldap/ldap_client.c index bc230879fc..da1ffcd317 100644 --- a/source4/libcli/ldap/ldap_client.c +++ b/source4/libcli/ldap/ldap_client.c @@ -405,10 +405,9 @@ static void ldap_connect_recv_tcp_conn(struct composite_context *ctx) struct ldap_connect_state); struct ldap_connection *conn = state->conn; uint16_t port; - NTSTATUS status = socket_connect_multi_recv(ctx, state, &conn->sock, &port); - if (!NT_STATUS_IS_OK(state->ctx->status)) { + if (!NT_STATUS_IS_OK(status)) { composite_error(state->ctx, status); return; } |