Skip to content

Commit

Permalink
cookie: set ->running in cookie_init even if data is NULL
Browse files Browse the repository at this point in the history
This is a regression introduced in b1b326e (shipped in curl 8.1.0)

Test 3103 verifies.

Fixes #11875
Reported-by: wangp on github
Closes #11876
  • Loading branch information
bagder committed Sep 19, 2023
1 parent 7f22545 commit 73c82ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cookie.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 73c82ed

Please sign in to comment.