From: Harry Sintonen Date: Tue, 3 Nov 2020 10:29:40 +0000 (+0200) Subject: rtsp: fixed the RTST Session ID mismatch in test 570 X-Git-Tag: curl-7_74_0~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77a7b93c25041ec27baa7bbe4300cf88cb3c4dbb;p=thirdparty%2Fcurl.git rtsp: fixed the RTST Session ID mismatch in test 570 Closes #6161 --- 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: