uninitialized).
Fix arg to malloc call (sizeof (x) should have been (x)).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2273
dc483132-0cff-0310-8789-
dd5450dbe970
*tempto = *partfrom;
if (retval = krb5_copy_keyblock(partfrom->session,
&tempto->session)) {
- xfree(tempto->session);
xfree(tempto);
return retval;
}
}
tempto->transited = partfrom->transited;
tempto->transited.tr_contents.data =
- malloc(sizeof(partfrom->transited.tr_contents.length));
+ malloc(partfrom->transited.tr_contents.length);
if (!tempto->transited.tr_contents.data) {
krb5_free_principal(tempto->client);
krb5_free_keyblock(tempto->session);