gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r19801 - gnunet/src/testing


From: gnunet
Subject: [GNUnet-SVN] r19801 - gnunet/src/testing
Date: Tue, 14 Feb 2012 11:56:31 +0100

Author: bartpolot
Date: 2012-02-14 11:56:31 +0100 (Tue, 14 Feb 2012)
New Revision: 19801

Modified:
   gnunet/src/testing/testing.c
Log:
- Cancel task to prevent acessing freed memory

Modified: gnunet/src/testing/testing.c
===================================================================
--- gnunet/src/testing/testing.c        2012-02-14 10:38:28 UTC (rev 19800)
+++ gnunet/src/testing/testing.c        2012-02-14 10:56:31 UTC (rev 19801)
@@ -1668,6 +1668,8 @@
 
   GNUNET_free_non_null (del_arg);
   d->max_timeout = GNUNET_TIME_relative_to_absolute (timeout);
+  if (GNUNET_SCHEDULER_NO_TASK != d->task)
+    GNUNET_SCHEDULER_cancel(d->task);
   d->task = GNUNET_SCHEDULER_add_now (&start_fsm, d);
 }
 




reply via email to

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