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
This commit is contained in:
Daniel Stenberg 2023-09-18 09:06:53 +02:00
parent 7f225456d1
commit 73c82ed941
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;