gss_preauth: remove dead code

The intent was to map KRB5KRB_AP_ERR_BAD_INTEGRITY and HNTLM_ERR_AUTH to
KRB5KRB_AP_ERR_BAD_INTEGRITY, but this code was never reached.
This commit is contained in:
Luke Howard
2022-01-21 10:09:44 +11:00
parent fce4d19953
commit 8946f0de9d

View File

@@ -64,12 +64,6 @@ _krb5_gss_map_error(OM_uint32 major, OM_uint32 minor)
ret = KRB5KRB_AP_ERR_BAD_INTEGRITY;
break;
case GSS_S_FAILURE:
if (minor == (OM_uint32)KRB5KRB_AP_ERR_BAD_INTEGRITY ||
minor == (OM_uint32)HNTLM_ERR_AUTH)
ret = KRB5KRB_AP_ERR_BAD_INTEGRITY;
else
ret = KRB5KDC_ERR_PREAUTH_FAILED;
break;
default:
ret = KRB5KDC_ERR_PREAUTH_FAILED;
break;