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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 17 Aug 2017 08:38:21 +0000 (10:38 +0200)
commit65a90719213dd5f886a4c62586d64c77394906a0
treecaf40a3064892b4e7d35a7b5837f295f88e008d4
parenta4a0478b00b48ae4900c8a711fa1596fed79b7ba
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>
(cherry picked from commit 1fb46b76dbcf28d8c71ff1096c402953a90bcf5f)
source3/rpc_client/cli_netlogon.c