diff options
author | Volker Lendecke <vl@samba.org> | 2010-10-02 11:50:26 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-10-02 12:02:02 +0200 |
commit | 13756d0e803c228f7ff75ba996acd6afd1df0dcb (patch) | |
tree | 451805eabad52144e81a34bb6ea803ed23973044 /source3/lib/netapi/file.c | |
parent | fc6e910e69f49cd482966eb9af3f27c0b65bcf4b (diff) | |
download | samba-13756d0e803c228f7ff75ba996acd6afd1df0dcb.tar.gz samba-13756d0e803c228f7ff75ba996acd6afd1df0dcb.tar.bz2 samba-13756d0e803c228f7ff75ba996acd6afd1df0dcb.zip |
s3: Attempt to fix bug 7665
Quite a few of our internal routines put stuff on talloc_tos() these days.
In top-level netapi routines, properly allocate a stackframe and clean it
again. Also, don't leak memory in the rpccli_ callers onto the libnetapi
context.
Diffstat (limited to 'source3/lib/netapi/file.c')
-rw-r--r-- | source3/lib/netapi/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/netapi/file.c b/source3/lib/netapi/file.c index 1c3ef6d78f..6d76be0500 100644 --- a/source3/lib/netapi/file.c +++ b/source3/lib/netapi/file.c @@ -42,7 +42,7 @@ WERROR NetFileClose_r(struct libnetapi_ctx *ctx, goto done; } - status = rpccli_srvsvc_NetFileClose(pipe_cli, ctx, + status = rpccli_srvsvc_NetFileClose(pipe_cli, talloc_tos(), r->in.server_name, r->in.fileid, &werr); @@ -136,7 +136,7 @@ WERROR NetFileGetInfo_r(struct libnetapi_ctx *ctx, goto done; } - status = rpccli_srvsvc_NetFileGetInfo(pipe_cli, ctx, + status = rpccli_srvsvc_NetFileGetInfo(pipe_cli, talloc_tos(), r->in.server_name, r->in.fileid, r->in.level, @@ -216,7 +216,7 @@ WERROR NetFileEnum_r(struct libnetapi_ctx *ctx, break; } - status = rpccli_srvsvc_NetFileEnum(pipe_cli, ctx, + status = rpccli_srvsvc_NetFileEnum(pipe_cli, talloc_tos(), r->in.server_name, r->in.base_path, r->in.user_name, |