]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channel: Protect flags in ast_waitfor_nandfds operation. 31/4931/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:22 +0000 (05:09 -0600)
commit0956ca15dc36609dd99287e10467642dfb3bc8d3
tree155f585ba9c791f7904b98dc1a6201ba3591e3aa
parentabf95615184b3780793d97e1b03fb7fa97ac90f4
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