From: Daniel Stenberg Date: Mon, 18 Sep 2023 07:06:53 +0000 (+0200) Subject: cookie: set ->running in cookie_init even if data is NULL X-Git-Tag: curl-8_4_0~181 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73c82ed941fb8d8f024ad5106bb91cc3eafcc573;p=thirdparty%2Fcurl.git cookie: set ->running in cookie_init even if data is NULL This is a regression introduced in b1b326ec500 (shipped in curl 8.1.0) Test 3103 verifies. Fixes #11875 Reported-by: wangp on github Closes #11876 --- diff --git a/lib/cookie.c b/lib/cookie.c index 37d1113d29..af01203a9a 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -1266,8 +1266,8 @@ struct CookieInfo *Curl_cookie_init(struct Curl_easy *data, fclose(handle); } data->state.cookie_engine = TRUE; - c->running = TRUE; /* now, we're running */ } + c->running = TRUE; /* now, we're running */ return c;