diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-10-08 16:35:33 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2005-10-08 16:35:33 +0000 |
commit | 7c8fc99da1c9cbaf275ba2ef6790a7629e7295d7 (patch) | |
tree | 0dcf39e437509cfbb84eac8afc31eda9b28b9fd0 /source | |
parent | 5852b04e4ded0f4445daa68f74cda975446cd8ea (diff) | |
download | samba-7c8fc99da1c9cbaf275ba2ef6790a7629e7295d7.tar.gz samba-7c8fc99da1c9cbaf275ba2ef6790a7629e7295d7.tar.xz samba-7c8fc99da1c9cbaf275ba2ef6790a7629e7295d7.zip |
r10836: giving NT_STATUS_NO_MEMORY, when the connection fails wasn't a good idea...
metze
Diffstat (limited to 'source')
-rw-r--r-- | source/libcli/wrepl/winsrepl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/libcli/wrepl/winsrepl.c b/source/libcli/wrepl/winsrepl.c index 31ef1ffbeba..82abd766657 100644 --- a/source/libcli/wrepl/winsrepl.c +++ b/source/libcli/wrepl/winsrepl.c @@ -433,6 +433,7 @@ static NTSTATUS wrepl_request_wait(struct wrepl_request *req) return req->status; } +static void wrepl_request_trigger(struct wrepl_request *req); /* connect a wrepl_socket to a WINS server @@ -459,7 +460,13 @@ struct wrepl_request *wrepl_connect_send(struct wrepl_socket *wrepl_socket, status = socket_connect(wrepl_socket->sock, our_ip, 0, peer_ip, WINS_REPLICATION_PORT, 0); - if (!NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) goto failed; + if (!NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) { + req->wrepl_socket = wrepl_socket; + req->state = WREPL_REQUEST_ERROR; + req->status = status; + wrepl_request_trigger(req); + return req; + } return req; |