From 1c7a4c7abac75d6d30a2aace5cd465f81f80cefa Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 10 Jul 1993 02:43:16 +0000 Subject: [PATCH] Make sure krb5_init_ets() only initalizes the error tables once git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2618 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/error_tables/init_ets.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/krb5/error_tables/init_ets.c b/src/lib/krb5/error_tables/init_ets.c index db88d77cc..376e2479c 100644 --- a/src/lib/krb5/error_tables/init_ets.c +++ b/src/lib/krb5/error_tables/init_ets.c @@ -35,6 +35,12 @@ static char rcsid_init_ets_c[] = void krb5_init_ets PROTOTYPE((void)) { + static int initialized = 0; + + if (initialized) + return; + + initialized++; initialize_krb5_error_table(); initialize_kdb5_error_table(); initialize_isod_error_table(); -- 2.26.2