Subject: [AAA-WG]: Found bug in AAATRNS

From: Avi Lior <[email-masked]>
Date: Mon, 29 Nov 2004 12:51:03 -0500

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;
	}
}