and aren't bzero()'d before use.
From: "Chris G. Demetriou" <cgd@nobozo.CS.Berkeley.EDU>
SCCS-vsn: usr.sbin/lpr/lpd/lpd.c 8.4
- * Copyright (c) 1983, 1993
+ * Copyright (c) 1983, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
*
* The Regents of the University of California. All rights reserved.
*
*
#ifndef lint
static char copyright[] =
#ifndef lint
static char copyright[] =
-"@(#) Copyright (c) 1983, 1993\n\
+"@(#) Copyright (c) 1983, 1993, 1994\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)lpd.c 8.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)lpd.c 8.4 (Berkeley) %G%";
/*
* Main loop: accept, do a request, continue.
*/
/*
* Main loop: accept, do a request, continue.
*/
+ memset(&frominet, 0, sizeof(frominet));
+ memset(&fromunix, 0, sizeof(fromunix));
for (;;) {
int domain, nfds, s;
fd_set readfds;
for (;;) {
int domain, nfds, s;
fd_set readfds;