]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fixes framehook segfault on indicate
authorDavid Vossel <dvossel@digium.com>
Tue, 3 May 2011 22:05:59 +0000 (22:05 +0000)
committerDavid Vossel <dvossel@digium.com>
Tue, 3 May 2011 22:05:59 +0000 (22:05 +0000)
(closes issue #19215)
Reported by: irroot
Patches:
      framehook_indicate.patch uploaded by irroot (license 52)

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

main/channel.c

index 18569b38e6e8e1f6fdbf4b65d85609f6a817c83f..f055a04606c495679fbd6a312e1e782c795aa3b4 100644 (file)
@@ -4268,7 +4268,7 @@ int ast_indicate_data(struct ast_channel *chan, int _condition,
                awesome_frame = ast_frdup(&frame);
 
                /* who knows what we will get back! the anticipation is killing me. */
-               if (!(awesome_frame = ast_framehook_list_read_event(chan->framehooks, &frame))) {
+               if (!(awesome_frame = ast_framehook_list_read_event(chan->framehooks, awesome_frame))) {
                        res = 0;
                        goto indicate_cleanup;
                }