From 77a7b93c25041ec27baa7bbe4300cf88cb3c4dbb Mon Sep 17 00:00:00 2001 From: Harry Sintonen Date: Tue, 3 Nov 2020 12:29:40 +0200 Subject: [PATCH] rtsp: fixed the RTST Session ID mismatch in test 570 Closes #6161 --- tests/libtest/lib570.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: