rtsp: don't let CSeq error override earlier errors
- When done, if an error has already occurred then don't check the sequence numbers for mismatch. A sequence number may not have been received if an error occurred. Prior to this change a sequence mismatch error would override earlier errors. For example, a server that returns nothing would cause error CURLE_GOT_NOTHING in Curl_http_done which was then overridden by CURLE_RTSP_CSEQ_ERROR in rtsp_done. Closes https://github.com/curl/curl/pull/8525
This commit is contained in:
parent
d3cb3be520
commit
acf46b1bba
@ -219,7 +219,7 @@ static CURLcode rtsp_done(struct Curl_easy *data,
|
||||
|
||||
httpStatus = Curl_http_done(data, status, premature);
|
||||
|
||||
if(rtsp) {
|
||||
if(rtsp && !status && !httpStatus) {
|
||||
/* Check the sequence numbers */
|
||||
long CSeq_sent = rtsp->CSeq_sent;
|
||||
long CSeq_recv = rtsp->CSeq_recv;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user