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) {
|
||||
*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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue