fix missing name and potential segfault in gateway status
This commit is contained in:
parent
e0c37c1f6e
commit
40ac860aaa
|
@ -2293,11 +2293,14 @@ static const char *sofia_state_names[] = {
|
|||
"FAIL_WAIT",
|
||||
"EXPIRED",
|
||||
"NOREG",
|
||||
"TIMEOUT",
|
||||
NULL
|
||||
};
|
||||
|
||||
const char *sofia_state_string(int state)
|
||||
{
|
||||
if (state >= REG_STATE_LAST) return "";
|
||||
|
||||
return sofia_state_names[state];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue