mirror of
https://github.com/moparisthebest/curl
synced 2024-11-16 06:25:03 -05:00
quiche: fix crash when failing to connect
Reported-by: ウさん Fixes #6664 Closes #6701
This commit is contained in:
parent
b899cb08c6
commit
ec549aa625
@ -908,9 +908,11 @@ CURLcode Curl_is_connected(struct Curl_easy *data,
|
||||
connkeep(conn, "HTTP/3 default");
|
||||
return CURLE_OK;
|
||||
}
|
||||
if(result)
|
||||
if(result) {
|
||||
conn->tempsock[i] = CURL_SOCKET_BAD;
|
||||
error = SOCKERRNO;
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
|
@ -360,6 +360,8 @@ static CURLcode process_ingress(struct Curl_easy *data, int sockfd,
|
||||
uint8_t *buf = (uint8_t *)data->state.buffer;
|
||||
size_t bufsize = data->set.buffer_size;
|
||||
|
||||
DEBUGASSERT(qs->conn);
|
||||
|
||||
/* in case the timeout expired */
|
||||
quiche_conn_on_timeout(qs->conn);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user