[Top][All Lists]

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

[GNUnet-SVN] [gnunet] branch master updated: fix use-after-free

From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: fix use-after-free
Date: Tue, 04 Jun 2019 23:35:31 +0200

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

grothoff pushed a commit to branch master
in repository gnunet.

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

commit 1499f09f5b1a059dcbdd14881a94a19dfa7b13b9
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Jun 4 23:34:50 2019 +0200

    fix use-after-free
 src/ats/plugin_ats2_simple.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ats/plugin_ats2_simple.c b/src/ats/plugin_ats2_simple.c
index 7d5aebdfa..14bd2b99d 100644
--- a/src/ats/plugin_ats2_simple.c
+++ b/src/ats/plugin_ats2_simple.c
@@ -520,7 +520,6 @@ watch_cb (void *cls,
   hello->nt = nt;
   hello->peer = p;
   memcpy (&hello[1], addr, alen);
-  GNUNET_free (addr);
   GNUNET_CONTAINER_DLL_insert (p->h_head, p->h_tail, hello);
   /* check if sh for this HELLO already exists */
   for (struct GNUNET_ATS_SessionHandle *sh = p->sh_head; NULL != sh;
@@ -533,6 +532,7 @@ watch_cb (void *cls,
     hello->sh = sh;
+  GNUNET_free (addr);
   if (NULL == p->task)
     p->task = GNUNET_SCHEDULER_add_now (&suggest_start_cb, p);

To stop receiving notification emails like this one, please contact

reply via email to

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