aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib575.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/libtest/lib575.c b/tests/libtest/lib575.c
index 3bf15ea26..49a379e80 100644
--- a/tests/libtest/lib575.c
+++ b/tests/libtest/lib575.c
@@ -84,6 +84,10 @@ int test(char *URL)
timeout.tv_usec = 0;
m = curl_multi_fdset(mhandle, &fdread, &fdwrite, &fdexcep, &max_fdset);
+ if(m != CURLM_OK) {
+ fprintf(stderr, "curl_multi_fdset() error\n");
+ goto test_cleanup;
+ }
rc = select(max_fdset + 1, &fdread, &fdwrite, &fdexcep, &timeout);
if(rc == -1) {
fprintf(stderr, "select() error\n");