- typo: s/optarg/nprobes_str; fixes segfault as reported by Raphael HUCK

This commit is contained in:
Bernhard Reutner-Fischer 2006-08-18 18:29:40 +00:00
parent 71193a853d
commit 13068a4fdb

View File

@ -1003,7 +1003,7 @@ traceroute_main(int argc, char *argv[])
if(port_str)
port = (u_short)str2val(port_str, "port", 1, (1 << 16) - 1);
if(nprobes_str)
nprobes = str2val(optarg, "nprobes", 1, -1);
nprobes = str2val(nprobes_str, "nprobes", 1, -1);
if(source) {
/*
* set the ip source address of the outbound