summaryrefslogtreecommitdiffstats
path: root/lib/cookie.c
diff options
context:
space:
mode:
authorCurl Upstream <curl-library@cool.haxx.se>2018-01-23 21:49:00 (GMT)
committerBrad King <brad.king@kitware.com>2018-01-24 19:14:23 (GMT)
commitaf9e654045f11028e50dac4781e297834129a749 (patch)
tree028fac729d317112e5790204712f4b4c7985a0de /lib/cookie.c
parentde7c21d677db1ddaeece03c19e13e448f4031511 (diff)
downloadCMake-af9e654045f11028e50dac4781e297834129a749.zip
CMake-af9e654045f11028e50dac4781e297834129a749.tar.gz
CMake-af9e654045f11028e50dac4781e297834129a749.tar.bz2
curl 2018-01-23 (d6c21c8e)
Code extracted from: https://github.com/curl/curl.git at commit d6c21c8eec597a925d2b647cff3d58ac69de01a0 (curl-7_58_0).
Diffstat (limited to 'lib/cookie.c')
-rw-r--r--lib/cookie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index 7fb596a..5f0f145 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -309,7 +309,7 @@ static void remove_expired(struct CookieInfo *cookies)
while(co) {
nx = co->next;
if(co->expires && co->expires < now) {
- if(co == cookies->cookies) {
+ if(!pv) {
cookies->cookies = co->next;
}
else {