gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: fix use-after-free on abort


From: gnunet
Subject: [taler-anastasis] branch master updated: fix use-after-free on abort
Date: Wed, 31 Mar 2021 17:03:47 +0200

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

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 004ca6e  fix use-after-free on abort
004ca6e is described below

commit 004ca6ee6d49fc68951f6e429e3e81000ae4644f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Mar 31 17:03:45 2021 +0200

    fix use-after-free on abort
---
 src/lib/anastasis_recovery.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/lib/anastasis_recovery.c b/src/lib/anastasis_recovery.c
index 9eba56c..7018959 100644
--- a/src/lib/anastasis_recovery.c
+++ b/src/lib/anastasis_recovery.c
@@ -103,11 +103,6 @@ struct ANASTASIS_Challenge
    */
   struct ANASTASIS_KeyShareLookupOperation *kslo;
 
-  /**
-   * The /truth GET operation handle.
-   */
-  struct ANASTASIS_KeyShareLookupOperation *cro;
-
 };
 
 
@@ -1375,6 +1370,11 @@ ANASTASIS_recovery_abort (struct ANASTASIS_Recovery *r)
   {
     struct ANASTASIS_Challenge *cs = r->ri.cs[i];
 
+    if (NULL != cs->kslo)
+    {
+      ANASTASIS_keyshare_lookup_cancel (cs->kslo);
+      cs->kslo = NULL;
+    }
     GNUNET_free (cs->url);
     GNUNET_free (cs->type);
     GNUNET_free (cs->instructions);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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