]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
rtsp: fixed the RTST Session ID mismatch in test 570
authorHarry Sintonen <sintonen@iki.fi>
Tue, 3 Nov 2020 10:29:40 +0000 (12:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 4 Nov 2020 07:14:16 +0000 (08:14 +0100)
Closes #6161

tests/libtest/lib570.c

index 016ed1098b7012ef81e753c70ac3a014c495045c..879edefdbd0a55089d6aa6c5e86a2ef2f4c0d1b2 100644 (file)
@@ -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: