Fix use freed pointer in return value from call thread
authorAlexandr Anikin <may@telecom-service.ru>
Mon, 30 Apr 2012 16:59:53 +0000 (16:59 +0000)
committerAlexandr Anikin <may@telecom-service.ru>
Mon, 30 Apr 2012 16:59:53 +0000 (16:59 +0000)
(issue ASTERISK-19663)
Reported by: Matt Jordan
Patches:
  ASTERISK-19663-ooh323.patch (License #5415)
........

Merged revisions 364649 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 364651 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@364652 65c4cc65-6c06-0410-ace0-fbb531ad65f3

addons/ooh323cDriver.c

index 150024f..1672849 100644 (file)
@@ -124,7 +124,7 @@ void* ooh323c_call_thread(void* dummy)
  free(mycthread);
  ast_module_unref(myself);
  ast_update_use_count();
- return dummy;
+ return NULL;
 }
 
 int ooh323c_start_call_thread(ooCallData *call) {