From 26c1a366dccd7718438385c7c2bee18861f72b9c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 26 Feb 2025 08:02:15 +0100 Subject: [PATCH] fixup reversed return code --- lib/cookie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cookie.c b/lib/cookie.c index 30077c5ffb..519fcdc4af 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -536,9 +536,9 @@ parse_cookie_header(struct Curl_easy *data, * "the rest". Prefixes must start with '__' and end with a '-', so * only test for names where that can possibly be true. */ - if(strncmp("__Secure-", Curl_str(&name), 9)) + if(!strncmp("__Secure-", Curl_str(&name), 9)) co->prefix_secure = TRUE; - else if(strncmp("__Host-", Curl_str(&name), 7)) + else if(!strncmp("__Host-", Curl_str(&name), 7)) co->prefix_host = TRUE; /*