mirror of
https://github.com/nmap/nmap.git
synced 2026-01-28 09:09:02 +00:00
65c50eb695282619fe94f130eddf1207554fc74a
Consolidate connect-scan status and errno checking
Previously, the return value and socket errors from the connect() call
were checked in two different places: immediately after the call, and
then later as the sockets were select()ed over. This led to a divergence
of logic, so the immediate checking failed to set state reasons or
contribute to timing. This commit puts all such checking into a single
function, handleConnectResult, so further improvements will not diverge
again.
Here is some documentation for Nmap, but these files are much less comprehensive than what you'll find at the actual Nmap documentation site ( http://nmap.org ).
Description
Languages
C
37.9%
Lua
28%
C++
16.7%
Shell
5.8%
Python
4.2%
Other
7.2%