diff options
author | Sami Kerola <kerolasa@iki.fi> | 2018-10-28 21:59:58 +0000 |
---|---|---|
committer | Sami Kerola <kerolasa@iki.fi> | 2018-11-11 10:43:58 +0000 |
commit | a123c2534f3e75195d7523848777a9fe367482a0 (patch) | |
tree | bac2623d541afe995a90c142e4aa8265f9c993d3 /tracepath.c | |
parent | 1a08e799d748910ec54eea4b40eb5fb626352e26 (diff) | |
download | iputils-a123c2534f3e75195d7523848777a9fe367482a0.tar.gz |
tracepath: do not continue execution with illegal -m value
Value that is not within expected range should not be used.
Reference: 608419a7804caf36a359875d2fdae0b3eb181387
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tracepath.c')
-rw-r--r-- | tracepath.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tracepath.c b/tracepath.c index 82720ad..17382ab 100644 --- a/tracepath.c +++ b/tracepath.c @@ -490,6 +490,7 @@ int main(int argc, char **argv) fprintf(stderr, "Error: max hops must be 0 .. %d (inclusive).\n", MAX_HOPS_LIMIT); + exit(1); } break; case 'p': |