From 1e80c4fcbef6904e89c4dbb088c06ca1f87672f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Yhuel?= Date: Sat, 14 Dec 2024 19:01:00 +0100 Subject: [PATCH] Reset the congestion protocol on the server between tests Otherwise, the server keeps the last congestion protocol asked by a client (-C option), applying it to the following clients not asking for a specific protocol. --- src/iperf_api.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/iperf_api.c b/src/iperf_api.c index fa06dc830..3df196d88 100644 --- a/src/iperf_api.c +++ b/src/iperf_api.c @@ -3262,6 +3262,9 @@ iperf_reset_test(struct iperf_test *test) SLIST_INIT(&test->streams); + if (test->congestion) + free(test->congestion); + test->congestion = NULL; if (test->remote_congestion_used) free(test->remote_congestion_used); test->remote_congestion_used = NULL;