summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-08 06:04:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:57 -0500
commitd7534e0cc772b9aa0b7cdeb0ed4469e44173348f (patch)
tree602bcf6b8373e30cfc303fff07c2f390d253d1b7 /source4/libcli
parent40cf47fa568e3f95cfc10d99a03e245948e42648 (diff)
downloadsamba-d7534e0cc772b9aa0b7cdeb0ed4469e44173348f.tar.gz
samba-d7534e0cc772b9aa0b7cdeb0ed4469e44173348f.tar.bz2
samba-d7534e0cc772b9aa0b7cdeb0ed4469e44173348f.zip
r18256: use the right status variable
(This used to be commit f4b4bd945f5c3955aab0c3cf89ad6cdda7529dac)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/ldap/ldap_client.c3
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;
}