raddr contents before copying over random memory.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5760
dc483132-0cff-0310-8789-
dd5450dbe970
Mon May 8 22:19:23 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+ * mk_faddr.c (krb5_make_fulladdr): Allocate enough memory for
+ raddr contents.
+
* read_pwd.c (krb5_read_password): Make arguments prompt and
prompt2 const char * for convenience to callers.
return EINVAL;
raddr->length = kaddr->length + kport->length + (4 * sizeof(krb5_int32));
- if (!(raddr->contents = (krb5_octet *)malloc(kaddr->length)))
+ if (!(raddr->contents = (krb5_octet *)malloc(raddr->length)))
return ENOMEM;
raddr->addrtype = ADDRTYPE_ADDRPORT;