diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-09-16 18:24:44 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-01-07 12:47:10 +0100 |
commit | a1c468e1d75d490f0e531feb08188ddc3f0d77b5 (patch) | |
tree | c7032abc7a827f6c2b1843b3eceb016a62cc9eea /source3/rpcclient/rpcclient.c | |
parent | 94caf7e190563423914b653d0c2fc4a4abf1f899 (diff) | |
download | samba-a1c468e1d75d490f0e531feb08188ddc3f0d77b5.tar.gz |
s3:rpcclient: add rpcclient_msg_ctx
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpcclient/rpcclient.c')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index eae6bbdb527..7435446873a 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -33,6 +33,7 @@ #include "libsmb/libsmb.h" #include "auth/gensec/gensec.h" #include "../libcli/smb/smbXcli_base.h" +#include "messages.h" enum pipe_auth_type_spnego { PIPE_AUTH_TYPE_SPNEGO_NONE = 0, @@ -48,6 +49,7 @@ static enum dcerpc_AuthLevel pipe_default_auth_level = DCERPC_AUTH_LEVEL_NONE; static unsigned int timeout = 0; static enum dcerpc_transport_t default_transport = NCACN_NP; +struct messaging_context *rpcclient_msg_ctx; struct user_auth_info *rpcclient_auth_info; struct cli_state *rpcclient_cli_state; @@ -987,6 +989,9 @@ out_free: /* We must load interfaces after we load the smb.conf */ load_interfaces(); + rpcclient_msg_ctx = messaging_init(talloc_autofree_context(), + samba_tevent_context_init(talloc_autofree_context())); + /* * Get password * from stdin if necessary |