From 4ed4f2159cc95679e407c26da9dce45208bb09b3 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Tue, 18 Jan 2022 00:31:54 -0600 Subject: [PATCH] krb5: Check errors in krb5_auth_con_getauthenticator() --- lib/krb5/auth_context.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/krb5/auth_context.c b/lib/krb5/auth_context.c index 43c762b76..8b43b6370 100644 --- a/lib/krb5/auth_context.c +++ b/lib/krb5/auth_context.c @@ -557,9 +557,8 @@ krb5_auth_con_getauthenticator(krb5_context context, if (*authenticator == NULL) return krb5_enomem(context); - copy_Authenticator(auth_context->authenticator, - *authenticator); - return 0; + return copy_Authenticator(auth_context->authenticator, + *authenticator); }