Fix broken logic: (!wrap || log) -> (!wrap && log) .

Reported by:	David Malone <dwmalone@maths.tcd.ie>
This commit is contained in:
Sheldon Hearn 1999-06-28 09:28:17 +00:00
parent 320138da4c
commit 8d0fe86993

View File

@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)from: inetd.c 8.4 (Berkeley) 4/13/94";
#endif
static const char rcsid[] =
"$Id: inetd.c,v 1.51 1999/06/21 11:17:34 sheldonh Exp $";
"$Id: inetd.c,v 1.52 1999/06/27 18:05:34 sheldonh Exp $";
#endif /* not lint */
/*
@ -540,7 +540,7 @@ main(argc, argv, envp)
close(ctrl);
continue;
}
if (!wrap || log) {
if (!wrap && log) {
i = sizeof peer;
if (getpeername(ctrl, (struct sockaddr *)
&peer, &i)) {