[367] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

question about kdc/network.c

daemon@ATHENA.MIT.EDU (Jim Miller)
Tue Oct 12 18:13:09 1993

From: jim@bilbo.suite.com (Jim Miller)
Date: Tue, 12 Oct 93 17:01:07 -0500
To: krb5-bugs@MIT.EDU
Cc: kerberos@MIT.EDU
Reply-To: Jim_Miller@suite.com


This post talks about code in Kerberos 5, pre-beta 3.

In the file "kdc/network.c", in the function "listen_and_process", there is a  
"while" loop, some socket code, and a couple of calls to "process_packet".   
There is also a variable called "errcount".  From the following code...

		if (errcount++ > 3)
			break;

...it looks like you want to terminate the loop if there are more than three  
errors.  However, you always reset "errcount" to zero at the bottom of the  
"while" loop:

    while (!signal_requests_exit) {

	[loop body deleted]

	errcount = 0;
    }


Is this a bug, or is "errcount" leftover from a debugging session, or what?

Thanks,

Jim_Miller@suite.com


home help back first fref pref prev next nref lref last post