Possible bug in Berkeley Time Server Daemon

Martin Minow minow at ranger.enet.dec.com
Mon Jul 1 04:49:16 AEST 1991


In reading through the sources to the Berkeley Time Server Daemon (timed),
I noticed what appears to be a coding error in the networkdelta.c
function (sccsid 2.3 6/18/88).  In that function, there is a sequence
of statements bracketed by "/* this piece of code is critical: DO NOT
TOUCH IT! */"  Near the bottom of that code is the sequence
	i++
	if (i = j)
		j++;
Could someone who is conversant with the source please check whether
"if (i = j)" should be "if (i == j)" (a mail response is preferred, and
I'll summarize).

Please direct flames about coding style and appropriate news groups to
some other newsgroup.

Thanks

Martin Minow
minow at ranger.enet.dec.com



More information about the Comp.unix.wizards mailing list