Don't dereference NULL in error verify_checksum error path

Andrew Bartlett

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Andrew Bartlett
2010-11-11 20:45:33 +11:00
committed by Love Hornquist Astrand
parent d69fcab43f
commit e189d712ce

View File

@@ -495,7 +495,7 @@ verify_checksum(krb5_context context,
krb5_set_error_message(context, ret,
N_("Decrypt integrity check failed for checksum "
"type %s, key type %s", ""),
ct->name, (crypto != NULL)? crypto->et->name : "(none)");
ct->name, crypto ? crypto->et->name : "(unkeyed)");
} else {
ret = 0;
}