krb5: Fix incorrect use of KRB5_ERR_NO_SERVICE

This commit is contained in:
Nicolas Williams
2021-12-15 15:20:18 -06:00
committed by Luke Howard
parent 9d426d20b5
commit 2a9e998072

View File

@@ -234,10 +234,10 @@ krb5_parse_name_flags(krb5_context context,
*principal = NULL;
if (no_realm && require_realm) {
krb5_set_error_message(context, KRB5_ERR_NO_SERVICE,
krb5_set_error_message(context, EINVAL,
N_("Can't require both realm and "
"no realm at the same time", ""));
return KRB5_ERR_NO_SERVICE;
return EINVAL;
}
/* count number of component,