From 96ebe5947e31c900da58311ac57ca483e3ef0385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 19 Aug 2005 13:07:06 +0000 Subject: [PATCH] (hdb_seal_key_mkey): dont double encrypt keys git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15940 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hdb/mkey.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/hdb/mkey.c b/lib/hdb/mkey.c index b9f816df1..09cf21678 100644 --- a/lib/hdb/mkey.c +++ b/lib/hdb/mkey.c @@ -486,6 +486,9 @@ hdb_seal_key_mkey(krb5_context context, Key *k, hdb_master_key mkey) krb5_data res; hdb_master_key key; + if(k->mkvno != NULL) + return 0; + key = _hdb_find_master_key(k->mkvno, mkey); if (key == NULL)