caller's tl_data (oops)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9306
dc483132-0cff-0310-8789-
dd5450dbe970
+Wed Nov 6 16:22:05 1996 Barry Jaspan <bjaspan@mit.edu>
+
+ * svr_principal.c (kadm5_modify_principal): don't free the
+ caller's tl_data (oops)
+
Fri Nov 1 13:18:40 1996 Barry Jaspan <bjaspan@mit.edu>
* svr_principal.c (kadm5_modify_principal): update for new tl_data
kdb.n_tl_data = entry->n_tl_data;
}
- if ((ret = kdb_put_entry(handle, &kdb, &adb)))
- goto done;
+ ret = kdb_put_entry(handle, &kdb, &adb);
+ if (mask & KADM5_TL_DATA) {
+ /* prevent kdb_free_entry from freeing the caller's data */
+ kdb.tl_data = NULL;
+ kdb.n_tl_data = 0;
+ }
+ if (ret) goto done;
ret = KADM5_OK;
done: