ticket: 3002
version_fixed: 1.4.3
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-4@17431
dc483132-0cff-0310-8789-
dd5450dbe970
+2005-10-12 Tom Yu <tlyu@mit.edu>
+
+ * ktutil_funcs.c (ktutil_add): Fix malloc size botches reported by
+ Will Fiveash.
+
2003-05-19 Sam Hartman <hartmans@mit.edu>
* ktutil.c (main): Don't register writable keytab ops as they are
memset((char *) entry, 0, sizeof(*entry));
if (!lp) { /* if list is empty, start one */
- lp = (krb5_kt_list) malloc(sizeof(krb5_kt_list));
+ lp = (krb5_kt_list) malloc(sizeof(*lp));
if (!lp) {
return ENOMEM;
}
} else {
- lp->next = (krb5_kt_list) malloc(sizeof(krb5_kt_list));
+ lp->next = (krb5_kt_list) malloc(sizeof(*lp));
if (!lp->next) {
return ENOMEM;
}