summaryrefslogtreecommitdiff
path: root/addons/ooh323cDriver.c
diff options
context:
space:
mode:
authorAlexandr Anikin <may@telecom-service.ru>2011-02-12 23:25:58 +0000
committerAlexandr Anikin <may@telecom-service.ru>2011-02-12 23:25:58 +0000
commiteaf73d6588821992ae08860b5c158f25d644c424 (patch)
tree0a6aeb7ebde002cb49b3b7209c149c473e71e7bd /addons/ooh323cDriver.c
parent96cbd4ffcde2dba25d5e243100ed529dc320b5af (diff)
change malloc to ast_calloc calls to prevent crash of asterisk
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@307677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'addons/ooh323cDriver.c')
-rw-r--r--addons/ooh323cDriver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/ooh323cDriver.c b/addons/ooh323cDriver.c
index 604336c21..259c35da8 100644
--- a/addons/ooh323cDriver.c
+++ b/addons/ooh323cDriver.c
@@ -145,7 +145,7 @@ int ooh323c_start_call_thread(ooCallData *call) {
/* make new thread */
if (cur == NULL) {
- if (!(cur = ast_malloc(sizeof(struct callthread)))) {
+ if (!(cur = ast_calloc(1, sizeof(struct callthread)))) {
ast_log(LOG_ERROR, "Unable to allocate thread structure for call %s\n",
call->callToken);
return -1;