add_entry was not working because the structure length element was
authorRichard Basch <probe@mit.edu>
Thu, 22 Feb 1996 04:21:07 +0000 (04:21 +0000)
committerRichard Basch <probe@mit.edu>
Thu, 22 Feb 1996 04:21:07 +0000 (04:21 +0000)
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

index ae557627addfa50f9a5a7627071c7c2d017024eb..5e228e4b17cee82ec87a09e43e34e8c7586b55d6 100644 (file)
@@ -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;