mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:13:31 +03:00
url: init conn->sockfd and writesockfd to CURL_SOCKET_BAD
Also add more tracing to test 19
Follow-up to a0f9480
Fixes #12657
Closes #12659
This commit is contained in:
parent
e556470c23
commit
d0cb2c7a1f
2 changed files with 3 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue