dect
/
asterisk
Archived
13
0
Fork 0

properly check for error from pri_timer2idx (bug #4117)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5541 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
kpfleming 2005-05-01 18:47:53 +00:00
parent 72e9551305
commit abafbd959b
1 changed files with 1 additions and 1 deletions

View File

@ -10085,7 +10085,7 @@ static int setup_zap(int reload)
if (!timer)
ast_log(LOG_WARNING, "'%s' is not a valid value for an ISDN timer\n", timerc);
else {
if ((timeridx = pri_timer2idx(timerc)))
if ((timeridx = pri_timer2idx(timerc)) >= 0)
pritimers[timeridx] = timer;
else
ast_log(LOG_WARNING, "'%s' is not a valid ISDN timer\n", timerc);