summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-07-24 16:12:45 -0700
committerKarolin Seeger <kseeger@samba.org>2017-08-17 10:38:22 +0200
commiteb2d10df8ad7ed80de8c83e03618ae6624cb03cf (patch)
tree0ccf2b5e62c2812a45ed962921b1e95579a52acb /source3/lib
parent301044e10640aa6ce4867c28fc61aed889fbb611 (diff)
downloadsamba-eb2d10df8ad7ed80de8c83e03618ae6624cb03cf.tar.gz
s3: clients: Use netlogon_creds_cli_close_global_db() in all normal exit paths.
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 dbd32932463935cd47c55a9e1afdaccd7f6daf4d)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/netapi/netapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c
index 3ed72952821..093348baefa 100644
--- a/source3/lib/netapi/netapi.c
+++ b/source3/lib/netapi/netapi.c
@@ -184,6 +184,8 @@ NET_API_STATUS libnetapi_free(struct libnetapi_ctx *ctx)
secrets_shutdown();
+ netlogon_creds_cli_close_global_db();
+
if (ctx == stat_ctx) {
stat_ctx = NULL;
}