From 95a6724e1dd5e8aae69fee30ecdae42b16c3f600 Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Thu, 10 Feb 2022 15:39:37 +0100 Subject: allow -r/--redirect 0 Disable redirections in this case. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 15afaf7..3d776b7 100644 --- a/src/main.c +++ b/src/main.c @@ -70,7 +70,7 @@ int main(int argc, char *argv[]) if (optind < argc && argv[optind][0] != '-') { max_redirect = atoi(argv[optind++]); - if (max_redirect <= 0) { + if (max_redirect < 0) { syslog(LOG_ERR, "Invalid number for redirections"); return EXIT_FAILURE; } -- cgit v1.2.3-18-g5258