]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Simplify and fix conditional in FD_SET. 22/2222/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:35 +0000 (14:39 -0600)
commit68643f83cd213e87619fa2e0d11ef38c4b2d6b6a
tree0b931590e552be09212b4b4386d302dac2457b30
parentcf89aecc8a9aa9bffeac2ee0ae2bd3781d0ec347
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