summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-11-18 23:48:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:28 -0500
commit771d4fab26c8580cbc186caee067884a314ecbc7 (patch)
treebea8c50d78fa3eb33c26112041dc73984b4190f7 /source4/libcli
parent27bab09cdb76364b0e0562304078c79c6612c6e1 (diff)
downloadsamba-771d4fab26c8580cbc186caee067884a314ecbc7.tar.gz
samba-771d4fab26c8580cbc186caee067884a314ecbc7.tar.bz2
samba-771d4fab26c8580cbc186caee067884a314ecbc7.zip
r11796: Two more uses of !composite_is_ok
(This used to be commit 7256157d01ff47d33706dadd45851cf2fbbce3a6)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/smb2/connect.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/source4/libcli/smb2/connect.c b/source4/libcli/smb2/connect.c
index cdfc162aae..7ed3f97bf3 100644
--- a/source4/libcli/smb2/connect.c
+++ b/source4/libcli/smb2/connect.c
@@ -47,10 +47,7 @@ static void continue_tcon(struct smb2_request *req)
struct smb2_connect_state);
c->status = smb2_tree_connect_recv(req, &state->tcon);
- if (!NT_STATUS_IS_OK(c->status)) {
- composite_error(c, c->status);
- return;
- }
+ if (!composite_is_ok(c)) return;
state->tree->tid = state->tcon.out.tid;
@@ -69,10 +66,7 @@ static void continue_session(struct composite_context *creq)
struct smb2_request *req;
c->status = smb2_session_setup_spnego_recv(creq);
- if (!NT_STATUS_IS_OK(c->status)) {
- composite_error(c, c->status);
- return;
- }
+ if (!composite_is_ok(c)) return;
state->tree = smb2_tree_init(state->session, state, True);
if (composite_nomem(state->tree, c)) return;
@@ -102,10 +96,7 @@ static void continue_negprot(struct smb2_request *req)
struct composite_context *creq;
c->status = smb2_negprot_recv(req, c, &state->negprot);
- if (!NT_STATUS_IS_OK(c->status)) {
- composite_error(c, c->status);
- return;
- }
+ if (!composite_is_ok(c)) return;
state->session = smb2_session_init(transport, state, True);
if (composite_nomem(state->session, c)) return;
@@ -129,10 +120,7 @@ static void continue_socket(struct composite_context *creq)
struct smb2_request *req;
c->status = smbcli_sock_connect_recv(creq, state, &sock);
- if (!NT_STATUS_IS_OK(c->status)) {
- composite_error(c, c->status);
- return;
- }
+ if (!composite_is_ok(c)) return;
transport = smb2_transport_init(sock, state);
if (composite_nomem(transport, c)) return;
@@ -160,10 +148,7 @@ static void continue_resolve(struct composite_context *creq)
const char *addr;
c->status = resolve_name_recv(creq, state, &addr);
- if (!NT_STATUS_IS_OK(c->status)) {
- composite_error(c, c->status);
- return;
- }
+ if (!composite_is_ok(c)) return;
creq = smbcli_sock_connect_send(state, addr, 445, state->host, c->event_ctx);