mirror of https://github.com/c-ares/c-ares.git
The problem occurs if at the start of the loop the sockindex is at the last valid ARES_GETSOCK_MAXNUM position. If then both udp_socket and tcp_socket are valid, sockindex gets incremented for UDP first and points one entry behind the array for the tcp block. So the fix is to check after every increment of sockindex if it is still valid. Fix Coverity error CID 56878 Signed-off-by: Gregor Jasny <gjasny@googlemail.com>pull/25/head
parent
13dc4800b2
commit
7db1afd38f
1 changed files with 3 additions and 5 deletions
Loading…
Reference in new issue