summaryrefslogtreecommitdiff
path: root/source4/heimdal/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-11-11 20:44:16 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-11-11 10:37:03 +0000
commitba127f9849a1ac93c9bab3b8377a880264353b16 (patch)
tree1b9fc6d2d21b72f93e6f4881750c235414a022b7 /source4/heimdal/lib
parenta9baabed562fb6858bd82ee7312faa908283dde4 (diff)
downloadsamba-ba127f9849a1ac93c9bab3b8377a880264353b16.tar.gz
samba-ba127f9849a1ac93c9bab3b8377a880264353b16.tar.bz2
samba-ba127f9849a1ac93c9bab3b8377a880264353b16.zip
heimdal Don't dereference NULL in error verify_checksum error path
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Nov 11 10:37:03 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/heimdal/lib')
-rw-r--r--source4/heimdal/lib/krb5/crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/heimdal/lib/krb5/crypto.c b/source4/heimdal/lib/krb5/crypto.c
index 006028b601..d5d9c1d9d5 100644
--- a/source4/heimdal/lib/krb5/crypto.c
+++ b/source4/heimdal/lib/krb5/crypto.c
@@ -1945,7 +1945,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->et->name);
+ ct->name, crypto ? crypto->et->name : "(unkeyed)");
} else {
ret = 0;
}