: Found bug in AAATRNS

Avi Lior <[email protected]>
Newsgroups gmane.ietf.aaa
Message-ID <F17FB067A86B2D488382C923C532EAA7024A4E0B@exch01.bridgewatersys.com>
I don't know if anyone reported this before.

Certainly that code has never been tested.

The following code will always endup in the "default" case.
The pcb->status = DOWN should be follow the switch statement.

OnConnectionDown(pcb)
{
	pcb->status = DOWN;
	CloseConnection();
	switch (pcb->status){
	case OKAY:
		Failover(pcb);
		SetWatchdog();
		break;
	case SUSPECT:
	case REOPEN:
		SetWatchdog();
		break;
	default:
		error("Shouldn't be here!);
		break;
	}
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.