mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
Add threadpool option version check into threadpool creation routine.
git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377804 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -810,6 +810,11 @@ struct ast_threadpool *ast_threadpool_create(const char *name,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (options->version != AST_THREADPOOL_OPTIONS_VERSION) {
|
||||
ast_log(LOG_WARNING, "Incompatible version of threadpool options in use.\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
tps = ast_taskprocessor_create_with_listener(name, tps_listener);
|
||||
|
||||
if (!tps) {
|
||||
|
Reference in New Issue
Block a user