diff options
author | Andreas Schneider <asn@samba.org> | 2011-07-21 17:58:41 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-07-21 18:40:23 +0200 |
commit | 4a6a588e442e8b0880051c92af82eb0fd3bc7f99 (patch) | |
tree | 1723dc628672dad2a8d72024266d4905203fd711 /source3/rpc_server | |
parent | 19288f978484ca0c826535083bcbefddcbd93346 (diff) | |
download | samba-4a6a588e442e8b0880051c92af82eb0fd3bc7f99.tar.gz samba-4a6a588e442e8b0880051c92af82eb0fd3bc7f99.tar.bz2 samba-4a6a588e442e8b0880051c92af82eb0fd3bc7f99.zip |
s3-rpc_server: We need to copy the session_info for external pipes.
Andrew please check!
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, |