Will Fiveash.
ticket: 3002
target_version: 1.4.3
tags: pullup
component: krb5-admin
version_reported: 1.4
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17421
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;
}