From: Stefan Eissing Date: Tue, 15 Apr 2025 09:27:12 +0000 (+0200) Subject: easy_reset: fix dohfor_mid member X-Git-Tag: curl-8_14_0~297 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39326f8ae602a062454543b04cea98958ba5de57;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/url.c b/lib/url.c index d94a29375e..39d72ac70a 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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 */