easy_reset: fix dohfor_mid member

On an easy reset, the dohfor_mid must be reset to -1.

Reported-by: epicmkirzinger on github
Fixes #17052
Closes #17058
This commit is contained in:
Stefan Eissing 2025-04-15 11:27:12 +02:00 committed by Daniel Stenberg
parent 6ab5afbc36
commit 39326f8ae6
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -366,6 +366,10 @@ CURLcode Curl_init_userdefined(struct Curl_easy *data)
set->postfieldsize = -1; /* unknown size */
set->maxredirs = 30; /* sensible default */
#ifndef CURL_DISABLE_DOH
set->dohfor_mid = -1;
#endif
set->method = HTTPREQ_GET; /* Default HTTP request */
#ifndef CURL_DISABLE_RTSP
set->rtspreq = RTSPREQ_OPTIONS; /* Default RTSP request */