Signed-off-by: Alexey Kodanev <alexey.koda...@oracle.com> --- testcases/network/tcp_fastopen/tcp_fastopen.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/network/tcp_fastopen/tcp_fastopen.c b/testcases/network/tcp_fastopen/tcp_fastopen.c index 6c0d7b8..08a6019 100644 --- a/testcases/network/tcp_fastopen/tcp_fastopen.c +++ b/testcases/network/tcp_fastopen/tcp_fastopen.c @@ -669,7 +669,7 @@ static void check_opt(const char *name, char *arg, int *val, int lim) if (sscanf(arg, "%i", val) != 1) tst_brkm(TBROK, NULL, "-%s option arg is not a number", name); - if (clients_num < lim) + if (*val < lim) tst_brkm(TBROK, NULL, "-%s option arg is less than %d", name, lim); } @@ -681,7 +681,7 @@ static void check_opt_l(const char *name, char *arg, long *val, long lim) if (sscanf(arg, "%ld", val) != 1) tst_brkm(TBROK, NULL, "-%s option arg is not a number", name); - if (clients_num < lim) + if (*val < lim) tst_brkm(TBROK, NULL, "-%s option arg is less than %ld", name, lim); } -- 1.7.1 ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list