From c25af51232616061bb08eea86aae595b4f029490 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 11 Jan 2009 21:42:52 +0000 Subject: [PATCH] make paranoia check less paranoid git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24245 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/crypto.c b/lib/krb5/crypto.c index a91ebff01..3531b5015 100644 --- a/lib/krb5/crypto.c +++ b/lib/krb5/crypto.c @@ -1863,7 +1863,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 " -- 2.11.4.GIT