From: Richard Basch Date: Thu, 22 Feb 1996 04:21:07 +0000 (+0000) Subject: add_entry was not working because the structure length element was X-Git-Tag: krb5-1.0-beta6~502 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7b9b0110414fff31bdb6ad812dcb2def819bc1bb;p=krb5.git 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 --- 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;