diff options
author | priscilla <priscilla.huang@efrei.net> | 2023-02-20 12:15:01 -0500 |
---|---|---|
committer | priscilla <priscilla.huang@efrei.net> | 2023-02-20 12:19:41 -0500 |
commit | 1eda15ed9451bc8311186a9fe7c196d300ba45ae (patch) | |
tree | b2c5b51b11e8fc398a4f40dbd5d3cc8c0d667850 /src | |
parent | 83c11d7428c6d4ba2e1749630724c39811a24241 (diff) | |
download | merchant-1eda15ed9451bc8311186a9fe7c196d300ba45ae.tar.gz merchant-1eda15ed9451bc8311186a9fe7c196d300ba45ae.tar.bz2 merchant-1eda15ed9451bc8311186a9fe7c196d300ba45ae.zip |
fix crash in test logic due to off by 1
Diffstat (limited to 'src')
-rw-r--r-- | src/testing/testing_api_cmd_testserver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/testing_api_cmd_testserver.c b/src/testing/testing_api_cmd_testserver.c index c5a929c0..5d0a5ad6 100644 --- 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]; |