-/* $Id: register.c,v 1.2 1996/04/17 07:23:33 tholo Exp $ */
+/* $Id: register.c,v 1.3 1996/09/04 05:10:23 deraadt Exp $ */
/*-
* Copyright (c) 1989, 1993
void die();
void setup_key(), type_info(), cleanup();
+int
main(argc, argv)
int argc;
char **argv;
int sock, llen;
u_char code;
static struct rlimit rl = { 0, 0 };
+ char passbuf[255];
signal(SIGPIPE, die);
exit(1);
}
+ bzero(passbuf, sizeof passbuf);
+ bcopy(password, passbuf, sizeof password);
if (des_write(sock, password, 255) != 255) {
+ bzero(passbuf, sizeof passbuf);
perror("write password");
cleanup();
exit(1);
}
+ bzero(passbuf, sizeof passbuf);
/* get return message */
void
cleanup()
{
- bzero(password, 255);
+ bzero(password, sizeof password);
}
extern char *crypt();