Skip to content
Snippets Groups Projects
Commit 2abda640 authored by Mark Michelson's avatar Mark Michelson
Browse files

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
parent 8760e32a
No related branches found
No related tags found
No related merge requests found
...@@ -810,6 +810,11 @@ struct ast_threadpool *ast_threadpool_create(const char *name, ...@@ -810,6 +810,11 @@ struct ast_threadpool *ast_threadpool_create(const char *name,
return NULL; 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); tps = ast_taskprocessor_create_with_listener(name, tps_listener);
if (!tps) { if (!tps) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment