+Mon Dec 25 10:03:15 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * ktutil.c (ktutil_write_v4): Call ktutil_write_srvtab not
+ ktutil_write_keytab.
+
+ * ktutil_funcs.c (ktutil_write_srvtab): Clear malloced memory.
+
Thu Sep 07 15:06:57 1995 Chris Provenzano (proven@mit.edu)
fprintf(stderr, "%s: must specify srvtab to write\n", argv[0]);
return;
}
- retval = ktutil_write_keytab(kcontext, ktlist, argv[1]);
+ retval = ktutil_write_srvtab(kcontext, ktlist, argv[1]);
if (retval)
com_err(argv[0], retval, "while writing srvtab \"%s\"", argv[1]);
#else
retval = krb5_kt_next_entry(context, kt, entry, &cursor);
if (retval)
break;
+
if (!lp) { /* if list is empty, start one */
lp = (krb5_kt_list)malloc(sizeof (*lp));
if (!lp) {
pruned = (krb5_kt_list) malloc(sizeof (*pruned));
if (!pruned)
return ENOMEM;
+ memset((char *) pruned, 0, sizeof(*pruned));
lp1 = pruned;
} else {
prev->next
retval = ENOMEM;
goto free_pruned;
}
+ memset((char *) prev->next, 0, sizeof(*pruned));
lp1 = prev->next;
}
lp1->entry = lp->entry;