mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 13:09:02 +00:00
Reject non-useable routes. Fixes #2206
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
#Nmap Changelog ($Id$); -*-text-*-
|
#Nmap Changelog ($Id$); -*-text-*-
|
||||||
|
|
||||||
|
o [GH#2206] Nmap no longer produces cryptic message "Failed to convert
|
||||||
|
source address to presentation format" when unable to find useable route
|
||||||
|
to the target. [nnposter]
|
||||||
|
|
||||||
o [Ncat][GH#2202] Use safety-checked versions of FD_* macros to abort early if
|
o [Ncat][GH#2202] Use safety-checked versions of FD_* macros to abort early if
|
||||||
number of connections exceeds FD_SETSIZE. [Pavel Zhukov]
|
number of connections exceeds FD_SETSIZE. [Pavel Zhukov]
|
||||||
|
|
||||||
|
|||||||
@@ -3163,7 +3163,8 @@ static int route_dst_netlink(const struct sockaddr_storage *dst,
|
|||||||
len -= NLMSG_LENGTH(sizeof(*nlmsg));
|
len -= NLMSG_LENGTH(sizeof(*nlmsg));
|
||||||
|
|
||||||
/* See rtnetlink(7). Anything matching this route is actually unroutable. */
|
/* See rtnetlink(7). Anything matching this route is actually unroutable. */
|
||||||
if (rtmsg->rtm_type == RTN_UNREACHABLE)
|
if (rtmsg->rtm_type == RTN_UNREACHABLE || rtmsg->rtm_type == RTN_UNSPEC
|
||||||
|
|| rtmsg->rtm_type == RTN_BLACKHOLE || rtmsg->rtm_type == RTN_PROHIBIT)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* Default values to be possibly overridden. */
|
/* Default values to be possibly overridden. */
|
||||||
|
|||||||
Reference in New Issue
Block a user