Guaranteed to stay around until the command exits.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12932
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
default_transport,
rpcclient_netlogon_domain,
&cmd_entry->rpc_pipe,
- talloc_autofree_context(),
+ rpcclient_msg_ctx,
&rpcclient_netlogon_creds);
break;
default:
ntresult = rpccli_create_netlogon_creds_with_creds(creds,
dc_name,
rpcclient_msg_ctx,
- talloc_autofree_context(),
+ rpcclient_msg_ctx,
&rpcclient_netlogon_creds);
if (!NT_STATUS_IS_OK(ntresult)) {
DEBUG(0, ("Could not initialise credentials for %s.\n",