s3: rpc_client: Allocate struct db_context * off the local frame, as all other variab...
authorJeremy Allison <jra@samba.org>
Mon, 24 Jul 2017 19:58:29 +0000 (12:58 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 26 Jul 2017 19:35:22 +0000 (21:35 +0200)
commit1fb46b76dbcf28d8c71ff1096c402953a90bcf5f
treee1ecc966fa2600c168db90a14dc1e667a90375ef
parent5c8a98c2dae92c71873798eb37f506093700a14c
s3: rpc_client: Allocate struct db_context * off the local frame, as all other variables in this function.

On success, netlogon_creds_cli_set_global_db() reparents it to a long-lived context.

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>
source3/rpc_client/cli_netlogon.c