]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Simplify and fix conditional in FD_SET. 20/2220/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:21:05 +0000 (15:21 -0500)
commitafb4a932806faef251e0aac0a39bd9c2aa930510
tree8a1f002a13b9bfd49d819ed3be42dd9b8e546d26
parent26fdf8a77eafdca33017032097061b1c0ad9b78c
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