From 3c980ebcb7449db0082b68660fafcae6113d2645 Mon Sep 17 00:00:00 2001
From: Andreas Schneider <asn@samba.org>
Date: Wed, 13 Nov 2019 13:57:53 +0100
Subject: [PATCH 143/187] s4:rpc_server: Remove gnutls_global_(de)init()
This is done by the gnutls library constructor/destructor.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit afb5cb669ceeb68bf93ef8db07abcc5d424580cd)
---
source4/rpc_server/backupkey/dcesrv_backupkey.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/source4/rpc_server/backupkey/dcesrv_backupkey.c b/source4/rpc_server/backupkey/dcesrv_backupkey.c
index cea6a28e4e2..36f5e5823eb 100644
--- a/source4/rpc_server/backupkey/dcesrv_backupkey.c
+++ b/source4/rpc_server/backupkey/dcesrv_backupkey.c
@@ -1802,8 +1802,6 @@ static WERROR dcesrv_bkrp_BackupKey(struct dcesrv_call_state *dce_call,
/* At which level we start to add more debug of what is done in the protocol */
const int debuglevel = 4;
- gnutls_global_init();
-
if (DEBUGLVL(debuglevel)) {
const struct tsocket_address *remote_address;
remote_address = dcesrv_connection_get_remote_address(dce_call->conn);
@@ -1856,7 +1854,6 @@ static WERROR dcesrv_bkrp_BackupKey(struct dcesrv_call_state *dce_call,
}
/*else: I am a RODC so I don't handle backup key protocol */
- gnutls_global_deinit();
talloc_unlink(mem_ctx, ldb_ctx);
return error;
}
--
2.23.0