]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channel.c: Fix segfault with Monitor(wav,file,i)
authorValentin Vidic <vvidic@valentin-vidic.from.hr>
Sun, 20 Jan 2019 18:15:51 +0000 (19:15 +0100)
committerCorey Farrell <git@cfware.com>
Sun, 20 Jan 2019 18:51:19 +0000 (12:51 -0600)
commitefde1ab1385b4831313c20c227924e0a6ecb3208
tree0cd1b6385734b160bceed77a87c892b29e1eb9fc
parent28da2948d13c961ab5d9e9ce0d6110672045c40c
channel.c: Fix segfault with Monitor(wav,file,i)

If the Monitor is started with the i option the read_stream will be
NULL. One code path in channel.c checks if write_stream is set but than
uses read_stream instead causing a segfault.

ASTERISK-28249

Change-Id: I1bae9126537be54895c7fea2d08dd9488d8cc525
main/channel.c