summaryrefslogtreecommitdiff
path: root/pidl/lib
diff options
context:
space:
mode:
authorSamuel Cabrero <scabrero@suse.de>2019-10-29 12:36:30 +0100
committerAndrew Bartlett <abartlet@samba.org>2020-05-24 23:55:37 +0000
commitf98b3b6f10e046ca5a9a7637159abf1b9dd40bda (patch)
tree0ee70c4b571572c6d2e17d50cc7471ff1a29f488 /pidl/lib
parentbe024932efe70d45ad511171d40ad355c583a9c2 (diff)
downloadsamba-f98b3b6f10e046ca5a9a7637159abf1b9dd40bda.tar.gz
pidl: Set dce_call in pipes_struct before dispatching call
Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'pidl/lib')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm
index 2c750728892..18ebdb8c7e3 100644
--- a/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm
@@ -344,6 +344,7 @@ sub boilerplate_iface($)
$self->pidl("p = dcesrv_get_pipes_struct(dce_call->conn);");
$self->pidl("/* Update pipes struct opnum */");
$self->pidl("p->opnum = opnum;");
+ $self->pidl("p->dce_call = dce_call;");
$self->pidl("/* Update pipes struct session info */");
$self->pidl("pipe_session_info = p->session_info;");
$self->pidl("p->session_info = dce_call->auth_state->session_info;");
@@ -388,6 +389,7 @@ sub boilerplate_iface($)
$self->pidl("}");
$self->pidl("");
+ $self->pidl("p->dce_call = NULL;");
$self->pidl("/* Restore session info */");
$self->pidl("p->session_info = pipe_session_info;");
$self->pidl("p->auth.auth_type = 0;");