Fix control flow bugs in poll() error paths
This commit is contained in:
parent
52250b4815
commit
1b642fec73
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue