From 6c55715d78bb8bb9e1fffeaf808f4cf4b564ae90 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Fri, 7 Jul 2000 21:52:55 +0000 Subject: [PATCH] (hdb_next_enctype2key): make sure of skipping `*key' git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8572 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hdb/hdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hdb/hdb.c b/lib/hdb/hdb.c index e0e819d5c..2d311407f 100644 --- a/lib/hdb/hdb.c +++ b/lib/hdb/hdb.c @@ -68,7 +68,7 @@ hdb_next_enctype2key(krb5_context context, { Key *k; - for (k = *key ? *key : e->keys.val; + for (k = *key ? (*key) + 1 : e->keys.val; k < e->keys.val + e->keys.len; k++) if(k->key.keytype == enctype){