correct amount of space for kstream data. (Patch from Cygnus KerbNet code,
1997.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13604
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-07-14 Ken Raeburn <raeburn@mit.edu>
+
+ * v4rcp.c (kstream_create_rcp_from_fd, kstream_create_from_fd):
+ Allocate correct amount of space for kstream data. (Patch from
+ Cygnus KerbNet code, 1997.)
+
2001-07-08 Ezra Peisach <epeisach@mit.edu>
* login.c (sigint): Declare static.
des_key_schedule *sched;
des_cblock *ivec;
{
- kstream tmp = (kstream)malloc(sizeof(kstream*));
+ kstream tmp = (kstream)malloc(sizeof(*tmp));
tmp->encrypting = 1;
tmp->read_fd = read_fd;
tmp->write_fd = write_fd;
des_cblock *session;
{
/* just set it up... */
- kstream tmp = (kstream)malloc(sizeof(kstream*));
+ kstream tmp = (kstream)malloc(sizeof(*tmp));
tmp->encrypting = 0;
tmp->read_fd = read_fd;
tmp->write_fd = write_fd;