mirror of
https://github.com/nmap/nmap.git
synced 2025-12-28 18:39:03 +00:00
sed -i 's/if ( /if (/g' *.cc *.h; sed -i 's/for ( /for (/g' *.cc *.h; sed -i 's/( /(/g' nmap_amigaos.h tcpip.h service_scan.cc
There's still quite a lot of code like this, nse_openssl.cc being most messy IMHO. Also, I left out "if( something )" syntax.
This commit is contained in:
2
nmap.cc
2
nmap.cc
@@ -948,7 +948,7 @@ void parse_options(int argc, char **argv) {
|
||||
fatal("--top-ports should be an integer 1 or greater");
|
||||
} else if (optcmp(long_options[option_index].name, "ip-options") == 0) {
|
||||
o.ipoptions = (u8*) safe_malloc(4 * 10 + 1);
|
||||
if ( (o.ipoptionslen = parse_ip_options(optarg, o.ipoptions, 4 * 10 + 1, &o.ipopt_firsthop, &o.ipopt_lasthop, errstr, sizeof(errstr))) == OP_FAILURE)
|
||||
if ((o.ipoptionslen = parse_ip_options(optarg, o.ipoptions, 4 * 10 + 1, &o.ipopt_firsthop, &o.ipopt_lasthop, errstr, sizeof(errstr))) == OP_FAILURE)
|
||||
fatal("%s", errstr);
|
||||
if (o.ipoptionslen > 4 * 10)
|
||||
fatal("Ip options can't be more than 40 bytes long");
|
||||
|
||||
Reference in New Issue
Block a user