des_cblock *ivec;
{
kstream tmp = (kstream)malloc(sizeof(*tmp));
+ if (tmp == NULL)
+ return NULL;
tmp->encrypting = 1;
tmp->read_fd = read_fd;
tmp->write_fd = write_fd;
{
/* just set it up... */
kstream tmp = (kstream)malloc(sizeof(*tmp));
+ if (tmp == NULL)
+ return NULL;
tmp->encrypting = 0;
tmp->read_fd = read_fd;
tmp->write_fd = write_fd;
&crypt_session_key);
} else
krem = kstream_create_from_fd (rem, 0, 0);
+ if (krem == NULL) {
+ error("rcp: out of memory\n");
+ exit(1);
+ }
kstream_set_buffer_mode (krem, 0);
#endif /* KERBEROS && !NOENCRYPTION */
(void) response();
&crypt_session_key);
} else
krem = kstream_create_from_fd (rem, 0, 0);
+ if (krem == NULL) {
+ error("rcp: out of memory\n");
+ exit(1);
+ }
kstream_set_buffer_mode (krem, 0);
#endif /* KERBEROS && !NOENCRYPTION */
if (setuid(userid)) {