commit 1eda15ed9451bc8311186a9fe7c196d300ba45ae parent 83c11d7428c6d4ba2e1749630724c39811a24241 Author: priscilla <priscilla.huang@efrei.net> Date: Mon, 20 Feb 2023 12:15:01 -0500 fix crash in test logic due to off by 1 Diffstat:
| M | src/testing/testing_api_cmd_testserver.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/testing/testing_api_cmd_testserver.c b/src/testing/testing_api_cmd_testserver.c @@ -276,7 +276,7 @@ testserver_cleanup (void *cls, struct TestserverState *ser = cls; (void) cmd; - for (unsigned int i = 0; i<ser->rcs_length - 1; i++) + for (unsigned int i = 0; i<ser->rcs_length; i++) { struct RequestCtx *rc = ser->rcs[i];