diff options
author | Volker Lendecke <vl@samba.org> | 2009-01-18 18:15:49 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-01-18 20:10:06 +0100 |
commit | a9542ddcb77f0296cb835d0ae337dc54418c1bf4 (patch) | |
tree | e0d020037400f5d6a9a96f6a9125f732f2b4bff5 /source3/lib/netapi/file.c | |
parent | 6ffe233f9442792a0e8e52167a01b76eabd83be9 (diff) | |
download | samba-a9542ddcb77f0296cb835d0ae337dc54418c1bf4.tar.gz samba-a9542ddcb77f0296cb835d0ae337dc54418c1bf4.tar.bz2 samba-a9542ddcb77f0296cb835d0ae337dc54418c1bf4.zip |
libnetapi_open_pipe does not need to return cli_state
The user session key is also available in rpccli->auth->user_session_key
Guenther, please check!
Thanks,
Volker
Diffstat (limited to 'source3/lib/netapi/file.c')
-rw-r--r-- | source3/lib/netapi/file.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source3/lib/netapi/file.c b/source3/lib/netapi/file.c index 0d66be0eb1..0d1bc08ad3 100644 --- a/source3/lib/netapi/file.c +++ b/source3/lib/netapi/file.c @@ -32,12 +32,10 @@ WERROR NetFileClose_r(struct libnetapi_ctx *ctx, { WERROR werr; NTSTATUS status; - struct cli_state *cli = NULL; struct rpc_pipe_client *pipe_cli = NULL; werr = libnetapi_open_pipe(ctx, r->in.server_name, &ndr_table_srvsvc.syntax_id, - &cli, &pipe_cli); if (!W_ERROR_IS_OK(werr)) { goto done; @@ -53,10 +51,6 @@ WERROR NetFileClose_r(struct libnetapi_ctx *ctx, } done: - if (!cli) { - return werr; - } - return werr; } @@ -118,7 +112,6 @@ WERROR NetFileGetInfo_r(struct libnetapi_ctx *ctx, { WERROR werr; NTSTATUS status; - struct cli_state *cli = NULL; struct rpc_pipe_client *pipe_cli = NULL; union srvsvc_NetFileInfo info; uint32_t num_entries = 0; @@ -137,7 +130,6 @@ WERROR NetFileGetInfo_r(struct libnetapi_ctx *ctx, werr = libnetapi_open_pipe(ctx, r->in.server_name, &ndr_table_srvsvc.syntax_id, - &cli, &pipe_cli); if (!W_ERROR_IS_OK(werr)) { goto done; @@ -163,10 +155,6 @@ WERROR NetFileGetInfo_r(struct libnetapi_ctx *ctx, goto done; } done: - if (!cli) { - return werr; - } - return werr; } @@ -187,7 +175,6 @@ WERROR NetFileEnum_r(struct libnetapi_ctx *ctx, { WERROR werr; NTSTATUS status; - struct cli_state *cli = NULL; struct rpc_pipe_client *pipe_cli = NULL; struct srvsvc_NetFileInfoCtr info_ctr; struct srvsvc_NetFileCtr2 ctr2; @@ -209,7 +196,6 @@ WERROR NetFileEnum_r(struct libnetapi_ctx *ctx, werr = libnetapi_open_pipe(ctx, r->in.server_name, &ndr_table_srvsvc.syntax_id, - &cli, &pipe_cli); if (!W_ERROR_IS_OK(werr)) { goto done; @@ -273,10 +259,6 @@ WERROR NetFileEnum_r(struct libnetapi_ctx *ctx, } done: - if (!cli) { - return werr; - } - return werr; } |