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/shutdown.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/shutdown.c')
-rw-r--r-- | source3/lib/netapi/shutdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/netapi/shutdown.c b/source3/lib/netapi/shutdown.c index 4bbb99e5e7..78b797b144 100644 --- a/source3/lib/netapi/shutdown.c +++ b/source3/lib/netapi/shutdown.c @@ -46,7 +46,7 @@ WERROR NetShutdownInit_r(struct libnetapi_ctx *ctx, init_lsa_StringLarge(&message, r->in.message); - status = rpccli_initshutdown_Init(pipe_cli, ctx, + status = rpccli_initshutdown_Init(pipe_cli, talloc_tos(), NULL, &message, r->in.timeout, @@ -88,7 +88,7 @@ WERROR NetShutdownAbort_r(struct libnetapi_ctx *ctx, goto done; } - status = rpccli_initshutdown_Abort(pipe_cli, ctx, + status = rpccli_initshutdown_Abort(pipe_cli, talloc_tos(), NULL, &werr); if (!NT_STATUS_IS_OK(status)) { |