From d176572cbcb0ec26ce867bd1f9b113a3cf8baae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 27 Apr 2006 11:01:30 +0000 Subject: [PATCH] (hdb_get_entry): Break out the that we request from principal from the entry and pass it in as a seprate argument. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17307 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hdb/keytab.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/hdb/keytab.c b/lib/hdb/keytab.c index ebf1fe420..717f4b865 100644 --- a/lib/hdb/keytab.c +++ b/lib/hdb/keytab.c @@ -218,8 +218,7 @@ hdb_get_entry(krb5_context context, (*db->hdb_destroy)(context, db); return ret; } - ent.entry.principal = rk_UNCONST(principal); - ret = (*db->hdb_fetch)(context, db, HDB_F_DECRYPT, &ent); + ret = (*db->hdb_fetch)(context, db, principal, HDB_F_DECRYPT, &ent); (*db->hdb_close)(context, db); (*db->hdb_destroy)(context, db);