diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-10 18:36:10 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-10 18:36:10 +0000 |
commit | 26a012f4f3169d720656bd9829e80207e47484f8 (patch) | |
tree | 972c13890f02e57b4cafff4f869a6b1263eafa94 /apps/app_directed_pickup.c | |
parent | f8fd696cc55229097ad511a17d6c9c7583d701f5 (diff) |
fixes crash in chan_console
There is a race condition between console_hangup()
and start_stream(). It is possible for console_hangup()
to be called and then the stream thread to begin after the hangup.
To avoid this a check in start_stream() to make sure the pvt-owner
still exists while the pvt lock is held is made. If the owner
is gone that means the channel hung up and start_stream should
be aborted.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@262236 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_directed_pickup.c')
0 files changed, 0 insertions, 0 deletions