mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
properly check for error from pri_timer2idx (bug #4117)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5541 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -10085,7 +10085,7 @@ static int setup_zap(int reload)
|
|||||||
if (!timer)
|
if (!timer)
|
||||||
ast_log(LOG_WARNING, "'%s' is not a valid value for an ISDN timer\n", timerc);
|
ast_log(LOG_WARNING, "'%s' is not a valid value for an ISDN timer\n", timerc);
|
||||||
else {
|
else {
|
||||||
if ((timeridx = pri_timer2idx(timerc)))
|
if ((timeridx = pri_timer2idx(timerc)) >= 0)
|
||||||
pritimers[timeridx] = timer;
|
pritimers[timeridx] = timer;
|
||||||
else
|
else
|
||||||
ast_log(LOG_WARNING, "'%s' is not a valid ISDN timer\n", timerc);
|
ast_log(LOG_WARNING, "'%s' is not a valid ISDN timer\n", timerc);
|
||||||
|
Reference in New Issue
Block a user