summaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-03-08 11:28:41 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-03-08 17:14:13 +0100
commitec549aa6254b4f1b8bd612f973a5c44d20a4d20b (patch)
tree878fc076f75717afd3a969239f479010834fe849 /lib/connect.c
parentb899cb08c66055cb798d8109de0e19e371fe440a (diff)
downloadcurl-ec549aa6254b4f1b8bd612f973a5c44d20a4d20b.tar.gz
quiche: fix crash when failing to connect
Reported-by: ウさん Fixes #6664 Closes #6701
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 6c9464360..f9dd415ba 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -908,8 +908,10 @@ 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