diff options
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/rpc_ncacn_np.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/rpc_server/rpc_ncacn_np.c b/source3/rpc_server/rpc_ncacn_np.c index a8d9608670..d4f3833366 100644 --- a/source3/rpc_server/rpc_ncacn_np.c +++ b/source3/rpc_server/rpc_ncacn_np.c @@ -675,7 +675,12 @@ struct np_proxy_state *make_external_rpc_pipe_p(TALLOC_CTX *mem_ctx, goto fail; } - session_info_t->session_info = session_info; + session_info_t->session_info = copy_session_info(session_info_t, + session_info); + if (session_info_t->session_info == NULL) { + DEBUG(0, ("copy_session_info failed\n")); + goto fail; + } become_root(); subreq = tstream_npa_connect_send(talloc_tos(), ev, |