s4: Remove double init of kerberos error table

swen swen at linux.ibm.com
Tue Dec 18 07:38:38 UTC 2018


Please review and push if happy.

Thanks for your support in advance.

Cheers Swen
-------------- next part --------------
From 7c5e2e0c67e17cd310f35643df0a16444fb1bbae Mon Sep 17 00:00:00 2001
From: Swen Schillig <swen at linux.ibm.com>
Date: Tue, 18 Dec 2018 08:30:24 +0100
Subject: [PATCH] s4: Remove double init of kerberos error table

The initialization of the kerberos error table
is already performed in smb_krb5_init_context_basic(),
therefore, it can be removed from of its callees.

Signed-off-by: Swen Schillig <swen at linux.ibm.com>
---
 source4/auth/kerberos/krb5_init_context.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/source4/auth/kerberos/krb5_init_context.c b/source4/auth/kerberos/krb5_init_context.c
index 5e771a87cc5..7e75d436922 100644
--- a/source4/auth/kerberos/krb5_init_context.c
+++ b/source4/auth/kerberos/krb5_init_context.c
@@ -541,8 +541,6 @@ krb5_error_code smb_krb5_init_context(void *parent_ctx,
 	krb5_log_facility *logf;
 #endif
 
-	initialize_krb5_error_table();
-
 	tmp_ctx = talloc_new(parent_ctx);
 	*smb_krb5_context = talloc_zero(tmp_ctx, struct smb_krb5_context);
 
-- 
2.19.2



More information about the samba-technical mailing list