From 7b9b0110414fff31bdb6ad812dcb2def819bc1bb Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Thu, 22 Feb 1996 04:21:07 +0000 Subject: [PATCH] add_entry was not working because the structure length element was not being initialized. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7493 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin.v4/server/kadm_funcs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kadmin.v4/server/kadm_funcs.c b/src/kadmin.v4/server/kadm_funcs.c index ae557627a..5e228e4b1 100644 --- a/src/kadmin.v4/server/kadm_funcs.c +++ b/src/kadmin.v4/server/kadm_funcs.c @@ -105,6 +105,8 @@ kadm_princ2entry(princ, entry) server_parm.krbrlm, &entry->princ); if (retval) return retval; + + entry->len = KRB5_KDB_V1_BASE_LENGTH; entry->max_life = princ.max_life * (60 * 5); entry->max_renewable_life = server_parm.max_rlife; /* XXX yeah well */ entry->expiration = princ.exp_date; -- 2.26.2