]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channel: Protect flags in ast_waitfor_nandfds operation. 30/4930/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:06:17 +0000 (11:06 +0000)
commit18f1b526013c4484105f264f6ba29b78f6ed8ff2
treee799d96e8bc9e5799d81d112ca5f709c88973566
parentc7fcc4468ffd54066129a982ff5b0a3cdfa7c5e0
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