]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channel: Protect flags in ast_waitfor_nandfds operation. 32/4932/1
authorJoshua Colp <jcolp@digium.com>
Mon, 13 Feb 2017 11:05:51 +0000 (11:05 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 13 Feb 2017 11:09:30 +0000 (05:09 -0600)
commit89871576b943058b65a7bfbe9df59fbe75f982dd
treed829716060f8bb8c88453a767171feadcc76598e
parent648d181d2fb62284eb7a2284221b48240a0e876e
channel: Protect flags in ast_waitfor_nandfds operation.

The ast_waitfor_nandfds operation will manipulate the flags
of channels passed in. This was previously done without
the channel lock being held. This could result in incorrect
values existing for the flags if another thread manipulated
the flags at the same time.

This change locks the channel during flag manipulation.

ASTERISK-26788

Change-Id: I2c5c8edec17c9bdad4a93291576838cb552ca5ed
main/channel.c