- typo: s/optarg/nprobes_str; fixes segfault as reported by Raphael HUCK
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 18 Aug 2006 18:29:40 +0000 (18:29 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 18 Aug 2006 18:29:40 +0000 (18:29 -0000)
networking/traceroute.c

index 9c1d6346e76d6c0bd2e81d5a51d5c210d704a019..b6a885544a416d72d3be41c17238c8b54d8fbf84 100644 (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