mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
s3-iremotewinspool: set the per-request memory context
The iremotewinspool service is not using the pidl autogenerated code.
Set the per-request memory context following the changes made is commit
5a7e9ade9a4cdfa68900c6a64b639f53c0da47ad.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14675
CI: https://gitlab.com/samba-team/samba/-/merge_requests/1890
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri Apr 9 15:20:02 UTC 2021 on sn-devel-184
(cherry picked from commit 1efa9ffd7a
)
This commit is contained in:
parent
12bfc43006
commit
b74a079a20
@ -100,6 +100,7 @@ static NTSTATUS iremotewinspool__op_dispatch_internal(struct dcesrv_call_state *
|
||||
/* Update pipes struct opnum */
|
||||
p->opnum = opnum;
|
||||
p->dce_call = dce_call;
|
||||
p->mem_ctx = mem_ctx;
|
||||
/* Update pipes struct session info */
|
||||
pipe_session_info = p->session_info;
|
||||
p->session_info = dce_call->auth_state->session_info;
|
||||
@ -1238,6 +1239,7 @@ fail:
|
||||
}
|
||||
|
||||
p->dce_call = NULL;
|
||||
p->mem_ctx = NULL;
|
||||
/* Restore session info */
|
||||
p->session_info = pipe_session_info;
|
||||
p->auth.auth_type = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user