]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Simplify and fix conditional in FD_SET. 21/2221/1
authorCorey Farrell <git@cfware.com>
Tue, 9 Feb 2016 20:21:05 +0000 (15:21 -0500)
committerCorey Farrell <git@cfware.com>
Tue, 9 Feb 2016 20:39:20 +0000 (14:39 -0600)
commit93e8ed01544bb1b9cba1dc24b06e157e3add9e23
tree4ff4a0944569f5b9962702268f6026dfe31ddee0
parenta7c8d4cd6b1db086c9efaa48ace361f8894fe767
Simplify and fix conditional in FD_SET.

FD_SET contains a conditional statement to protect against buffer
overruns.  The statement was overly complicated and prevented use
of the last array element of ast_fdset.  We now just verify the fd
is less than ast_FDMAX.

Change-Id: I41895c0b497b052aef5bf49d75c817c48b326f40
include/asterisk/select.h