diff --git a/tests/libtest/lib570.c b/tests/libtest/lib570.c index 016ed1098b..879edefdbd 100644 --- a/tests/libtest/lib570.c +++ b/tests/libtest/lib570.c @@ -101,8 +101,12 @@ int test(char *URL) stream_uri = NULL; res = curl_easy_perform(curl); - if(res != CURLE_RTSP_SESSION_ERROR) { + if(res == CURLE_RTSP_SESSION_ERROR) { + res = 0; + } + else { fprintf(stderr, "Failed to detect a Session ID mismatch"); + res = 1; } test_cleanup: