diff options
Diffstat (limited to 'sys/i4b/layer3/i4b_l3fsm.c')
-rw-r--r-- | sys/i4b/layer3/i4b_l3fsm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i4b/layer3/i4b_l3fsm.c b/sys/i4b/layer3/i4b_l3fsm.c index 11b97e8..3364467 100644 --- a/sys/i4b/layer3/i4b_l3fsm.c +++ b/sys/i4b/layer3/i4b_l3fsm.c @@ -211,13 +211,13 @@ void next_l3state(call_desc_t *cd, int event) { int currstate, newstate; - if(event > N_EVENTS) - panic("i4b_l3fsm.c: event > N_EVENTS\n"); + if(event >= N_EVENTS) + panic("i4b_l3fsm.c: event >= N_EVENTS\n"); currstate = cd->Q931state; - if(currstate > N_STATES) - panic("i4b_l3fsm.c: currstate > N_STATES\n"); + if(currstate >= N_STATES) + panic("i4b_l3fsm.c: currstate >= N_STATES\n"); newstate = l3state_tab[event][currstate].newstate; |