mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Fix control flow bugs in poll() error paths
This commit is contained in:
parent
52250b4815
commit
1b642fec73
@ -287,12 +287,12 @@ static bool transactRtspMessageTcp(PRTSP_MESSAGE request, PRTSP_MESSAGE response
|
|||||||
if (err == 0) {
|
if (err == 0) {
|
||||||
*error = ETIMEDOUT;
|
*error = ETIMEDOUT;
|
||||||
Limelog("RTSP request timed out\n");
|
Limelog("RTSP request timed out\n");
|
||||||
|
goto Exit;
|
||||||
}
|
}
|
||||||
else if (err < 0) {
|
else if (err < 0) {
|
||||||
*error = LastSocketError();
|
*error = LastSocketError();
|
||||||
Limelog("Failed to wait for RTSP response: %d\n", *error);
|
Limelog("Failed to wait for RTSP response: %d\n", *error);
|
||||||
goto Exit;
|
goto Exit;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
err = recv(sock, &responseBuffer[offset], responseBufferSize - offset, 0);
|
err = recv(sock, &responseBuffer[offset], responseBufferSize - offset, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user