projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8760e32
)
Add threadpool option version check into threadpool creation routine.
author
Mark Michelson
<mmichelson@digium.com>
Tue, 11 Dec 2012 16:36:08 +0000
(16:36 +0000)
committer
Mark Michelson
<mmichelson@digium.com>
Tue, 11 Dec 2012 16:36:08 +0000
(16:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377804
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/threadpool.c
patch
|
blob
|
history
diff --git
a/main/threadpool.c
b/main/threadpool.c
index
b3195fc
..
663de3b
100644
(file)
--- a/
main/threadpool.c
+++ b/
main/threadpool.c
@@
-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) {