From 005a43da963d44948e131e8e74030851973bb7cc Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Fri, 14 Jan 2022 14:39:31 -0600 Subject: [PATCH] gsspa: Quiet GCC fallthrough warning Somehow GCC was honoring lower-case "fallthrough" comments elsewhere but not here. Anyways, there was no need to fall through, so now we don't. --- lib/gss_preauth/pa_common.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/gss_preauth/pa_common.c b/lib/gss_preauth/pa_common.c index c2287ca70..0e6326cbf 100644 --- a/lib/gss_preauth/pa_common.c +++ b/lib/gss_preauth/pa_common.c @@ -65,10 +65,11 @@ _krb5_gss_map_error(OM_uint32 major, OM_uint32 minor) break; case GSS_S_FAILURE: if (minor == (OM_uint32)KRB5KRB_AP_ERR_BAD_INTEGRITY || - minor == (OM_uint32)HNTLM_ERR_AUTH) { + minor == (OM_uint32)HNTLM_ERR_AUTH) ret = KRB5KRB_AP_ERR_BAD_INTEGRITY; - break; - } + else + ret = KRB5KDC_ERR_PREAUTH_FAILED; + break; default: ret = KRB5KDC_ERR_PREAUTH_FAILED; break;