mirror of
https://github.com/nmap/nmap.git
synced 2026-01-04 05:39:01 +00:00
Fix a bug in the argparser. When users pass 'random' as an IPv6 address, the randomly generated address never gets stored. This was reported and fixed by Mark Atkinson. More info: http://seclists.org/nmap-dev/2012/q3/950
This commit is contained in:
@@ -1031,8 +1031,9 @@ char errstr[256];
|
||||
/* Set user supplied address (if we manage to resolve it) */
|
||||
else if ( atoIP(optarg, &sourceaddr, PF_INET6) != OP_SUCCESS){
|
||||
outFatal(QT_3, "Could not resolve source IPv6 address.");
|
||||
}
|
||||
ipv6addr = source6->sin6_addr;
|
||||
}else{
|
||||
ipv6addr = source6->sin6_addr;
|
||||
}
|
||||
o.setIPv6SourceAddress(ipv6addr);
|
||||
o.setSpoofSource();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user