From 9ff76dfc2ee4fffef2702a3784470b36dcfa1af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 22 Apr 2007 14:28:19 +0000 Subject: [PATCH] (krb5_store_creds_tag): use session.keytype to determine if to send the session-key, for the second place in the function. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20529 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/store.c b/lib/krb5/store.c index 51c80c0ec..d9295e5fc 100644 --- a/lib/krb5/store.c +++ b/lib/krb5/store.c @@ -916,7 +916,7 @@ krb5_store_creds_tag(krb5_storage *sp, krb5_creds *creds) return ret; } - if (creds->session.keyvalue.data) { + if (creds->session.keytype != ETYPE_NULL) { ret = krb5_store_keyblock(sp, creds->session); if(ret) return ret;