From 1b642fec7376b77b627af5d3b3002e2ace18e357 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 1 Jul 2021 22:20:09 -0500 Subject: [PATCH] Fix control flow bugs in poll() error paths --- src/RtspConnection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RtspConnection.c b/src/RtspConnection.c index 4c8f400..465190f 100644 --- a/src/RtspConnection.c +++ b/src/RtspConnection.c @@ -287,12 +287,12 @@ static bool transactRtspMessageTcp(PRTSP_MESSAGE request, PRTSP_MESSAGE response if (err == 0) { *error = ETIMEDOUT; Limelog("RTSP request timed out\n"); + goto Exit; } else if (err < 0) { *error = LastSocketError(); Limelog("Failed to wait for RTSP response: %d\n", *error); goto Exit; - return false; } err = recv(sock, &responseBuffer[offset], responseBufferSize - offset, 0);