mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
devname2ipaddr now requires address family, so correct addr is returned.
This commit is contained in:
parent
32c1272bfa
commit
b63eea5eea
6 changed files with 5 additions and 52 deletions
2
nmap.cc
2
nmap.cc
|
|
@ -1729,7 +1729,7 @@ void apply_delayed_options() {
|
|||
if (*o.device && !o.SourceSockAddr()) {
|
||||
struct sockaddr_storage tmpsock;
|
||||
memset(&tmpsock, 0, sizeof(tmpsock));
|
||||
if (devname2ipaddr(o.device, &tmpsock) == -1) {
|
||||
if (devname2ipaddr(o.device, o.af(), &tmpsock) == -1) {
|
||||
fatal("I cannot figure out what source address to use for device %s, does it even exist?", o.device);
|
||||
}
|
||||
o.setSourceSockAddr(&tmpsock, sizeof(tmpsock));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue