gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 39/116: cookie: avoid NULL dereference


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 39/116: cookie: avoid NULL dereference
Date: Tue, 05 Dec 2017 14:51:09 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit fa394c8c2e39ea327d668f14353b32580e821b1c
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Oct 30 16:42:25 2017 +0100

    cookie: avoid NULL dereference
    
    ... when expiring old cookies.
    
    Reported-by: Pavel Gushchin
    Fixes #2032
    Closes #2035
---
 lib/cookie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/cookie.c b/lib/cookie.c
index 271f6d49d..c7afc7ae3 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 {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]