Nmap Development mailing list archives
[BUG] nping/ArgParser.cc overwrites randomly generated ipv6 address
From: Mark Atkinson <atkin901 () gmail com>
Date: Thu, 20 Sep 2012 09:00:26 -0700
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ... Add the missing else $ svn diff -x -uw nping/ArgParser.cc Index: nping/ArgParser.cc =================================================================== - --- nping/ArgParser.cc (revision 29837) +++ nping/ArgParser.cc (working copy) @@ -1031,8 +1031,9 @@ /* 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."); + } else { + ipv6addr = source6->sin6_addr; } - - ipv6addr = source6->sin6_addr; o.setIPv6SourceAddress(ipv6addr); o.setSpoofSource(); } -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlBbPZoACgkQrDN5kXnx8yZxsACbBCYkXFFOLLrmg6GuoGr5LWef TuMAn3JKRjqRrbDSWRfcqGAvl7mDqwna =uANX -----END PGP SIGNATURE----- _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- [BUG] nping/ArgParser.cc overwrites randomly generated ipv6 address Mark Atkinson (Sep 20)
- Re: [BUG] nping/ArgParser.cc overwrites randomly generated ipv6 address Luis MartinGarcia. (Sep 20)