diff --git a/lib/gssapi/preauth/pa_common.c b/lib/gssapi/preauth/pa_common.c index 8fe049859..05bcdb7f7 100644 --- a/lib/gssapi/preauth/pa_common.c +++ b/lib/gssapi/preauth/pa_common.c @@ -65,8 +65,8 @@ _krb5_gss_map_error(OM_uint32 major, OM_uint32 minor) ret = KRB5KRB_AP_ERR_BAD_INTEGRITY; break; case GSS_S_FAILURE: - if (minor == KRB5KRB_AP_ERR_BAD_INTEGRITY || - minor == HNTLM_ERR_AUTH) { + if (minor == (OM_uint32)KRB5KRB_AP_ERR_BAD_INTEGRITY || + minor == (OM_uint32)HNTLM_ERR_AUTH) { ret = KRB5KRB_AP_ERR_BAD_INTEGRITY; break; }