mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
Fix the check against the max supported rate
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@123393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -149,7 +149,7 @@ static int pthread_timer_set_rate(int handle, unsigned int rate)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (rate > 0 && rate < MAX_RATE) {
|
||||
if (rate > MAX_RATE) {
|
||||
ast_log(LOG_ERROR, "res_timing_pthread only supports timers at a max rate of %d / sec\n",
|
||||
MAX_RATE);
|
||||
errno = EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user