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:

committed by
Love Hornquist Astrand

parent
d69fcab43f
commit
e189d712ce
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user