]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
url: init conn->sockfd and writesockfd to CURL_SOCKET_BAD
authorStefan Eissing <stefan@eissing.org>
Mon, 8 Jan 2024 14:02:12 +0000 (15:02 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 Jan 2024 15:51:13 +0000 (16:51 +0100)
Also add more tracing to test 19

Follow-up to a0f9480

Fixes #12657
Closes #12659

lib/url.c
tests/data/test19

index 7764668dc23354a76e99d295c42ddf81a3a2eaf3..e60020bc204ab2fa22577de80820070a3db40cd0 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1356,6 +1356,8 @@ static struct connectdata *allocate_conn(struct Curl_easy *data)
 
   conn->sock[FIRSTSOCKET] = CURL_SOCKET_BAD;     /* no file descriptor */
   conn->sock[SECONDARYSOCKET] = CURL_SOCKET_BAD; /* no file descriptor */
+  conn->sockfd = CURL_SOCKET_BAD;
+  conn->writesockfd = CURL_SOCKET_BAD;
   conn->connection_id = -1;    /* no ID */
   conn->port = -1; /* unknown at this point */
   conn->remote_port = -1; /* unknown at this point */
index 265a74ad884db7ffed27cdcd5f41e70da531cb5f..cf735a42f3f4bd13e1592f1762eee3210328c169 100644 (file)
@@ -24,7 +24,7 @@ http
 attempt connect to non-listening socket
 </name>
 <command>
-%HOSTIP:%NOLISTENPORT
+--trace-config all %HOSTIP:%NOLISTENPORT
 </command>
 </client>