summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-05 15:02:51 +0200
committerJeremy Allison <jra@samba.org>2013-04-11 14:44:43 -0700
commit6bed164c1553d9b031c7d1b85e642540adcafc1c (patch)
tree1782cac2e16d2f82204ce48d3cda7bb338873579
parent80097ac12234b3a7be077a2699d79f0f3dec53f6 (diff)
downloadsamba-6bed164c1553d9b031c7d1b85e642540adcafc1c.tar.gz
samba-6bed164c1553d9b031c7d1b85e642540adcafc1c.tar.bz2
samba-6bed164c1553d9b031c7d1b85e642540adcafc1c.zip
libsmbclient: Streamline cli_tcon_andx a bit
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/libsmb/cliconnect.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 0397b4878f..bcc95ba0e6 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -2592,7 +2592,7 @@ NTSTATUS cli_tcon_andx(struct cli_state *cli, const char *share,
TALLOC_CTX *frame = talloc_stackframe();
struct tevent_context *ev;
struct tevent_req *req;
- NTSTATUS status = NT_STATUS_OK;
+ NTSTATUS status = NT_STATUS_NO_MEMORY;
if (smbXcli_conn_has_async_calls(cli->conn)) {
/*
@@ -2604,13 +2604,11 @@ NTSTATUS cli_tcon_andx(struct cli_state *cli, const char *share,
ev = samba_tevent_context_init(frame);
if (ev == NULL) {
- status = NT_STATUS_NO_MEMORY;
goto fail;
}
req = cli_tcon_andx_send(frame, ev, cli, share, dev, pass, passlen);
if (req == NULL) {
- status = NT_STATUS_NO_MEMORY;
goto fail;
}