From fd572363a58985286102ab80b4202a2190b5e712 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 29 Dec 2019 17:44:26 +1100 Subject: [PATCH] gss: register GSS_KRB5_S error table The Kerberos GSS mechanism specific error table in gkrb5_err.et was never registered with libkrb5, so the messages corresponding to those errors would never be available. Register them with the thread local context used by the krb5 mechanism. --- lib/gssapi/krb5/init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gssapi/krb5/init.c b/lib/gssapi/krb5/init.c index 3a22c33ed..325b2c44c 100644 --- a/lib/gssapi/krb5/init.c +++ b/lib/gssapi/krb5/init.c @@ -69,6 +69,7 @@ _gsskrb5_init (krb5_context *context) ret = krb5_init_context(context); if (ret == 0) { + krb5_add_et_list(*context, initialize_gk5_error_table_r); HEIMDAL_setspecific(context_key, *context, ret); if (ret) { krb5_free_context(*context);