r18256: use the right status variable
authorAndrew Tridgell <tridge@samba.org>
Fri, 8 Sep 2006 06:04:10 +0000 (06:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:17:57 +0000 (14:17 -0500)
(This used to be commit f4b4bd945f5c3955aab0c3cf89ad6cdda7529dac)

source4/libcli/ldap/ldap_client.c

index bc230879fc956d0d55e671efa7668dc3baaf782d..da1ffcd317d3e3c9c6fd4d84705cbfaa08acfe24 100644 (file)
@@ -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;
        }