Fix control flow bugs in poll() error paths

This commit is contained in:
Cameron Gutman 2021-07-01 22:20:09 -05:00
parent 52250b4815
commit 1b642fec73

View File

@ -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);