diff options
Diffstat (limited to 'lib/krb5/crypto.c')
| -rw-r--r-- | lib/krb5/crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/krb5/crypto.c b/lib/krb5/crypto.c index 4b66035155dd..67ecef62e875 100644 --- a/lib/krb5/crypto.c +++ b/lib/krb5/crypto.c @@ -467,7 +467,7 @@ verify_checksum(krb5_context context, return KRB5_PROG_SUMTYPE_NOSUPP; /* XXX */ } kct = crypto->et->keyed_checksum; - if (kct != NULL && kct->type != ct->type) { + if (kct == NULL || kct->type != ct->type) { krb5_set_error_message(context, KRB5_PROG_SUMTYPE_NOSUPP, N_("Checksum type %s is keyed, but " "the key type %s passed didnt have that checksum " |
