diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-05 15:09:02 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-11 14:45:38 -0700 |
commit | c38dfebe5f5ef582a17833e12af95f25614de5ee (patch) | |
tree | b98f10eb99d6c3aeb16f43a166d5e29ce34c93b6 /source3/libsmb | |
parent | 906d173ca43a407752b2ee14fa45c28444a5a98f (diff) | |
download | samba-c38dfebe5f5ef582a17833e12af95f25614de5ee.tar.gz samba-c38dfebe5f5ef582a17833e12af95f25614de5ee.tar.bz2 samba-c38dfebe5f5ef582a17833e12af95f25614de5ee.zip |
libsmbclient: Streamline cli_openx a bit
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clifile.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index a248a46845..4b4e1a05fb 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -2271,7 +2271,7 @@ NTSTATUS cli_openx(struct cli_state *cli, const char *fname, int flags, 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)) { /* @@ -2283,13 +2283,11 @@ NTSTATUS cli_openx(struct cli_state *cli, const char *fname, int flags, ev = samba_tevent_context_init(frame); if (ev == NULL) { - status = NT_STATUS_NO_MEMORY; goto fail; } req = cli_openx_send(frame, ev, cli, fname, flags, share_mode); if (req == NULL) { - status = NT_STATUS_NO_MEMORY; goto fail; } |