summaryrefslogtreecommitdiff
path: root/tests/libtest/lib540.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/lib540.c')
-rw-r--r--tests/libtest/lib540.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/libtest/lib540.c b/tests/libtest/lib540.c
index 2e5885ff2..d34029d84 100644
--- a/tests/libtest/lib540.c
+++ b/tests/libtest/lib540.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -155,7 +155,10 @@ static int loop(int num, CURLM *cm, const char *url, const char *userpwd,
return res;
}
- while((msg = curl_multi_info_read(cm, &Q))) {
+ while(1) {
+ msg = curl_multi_info_read(cm, &Q);
+ if(!msg)
+ break;
if(msg->msg == CURLMSG_DONE) {
int i;
CURL *e = msg->easy_handle;