projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5278ab
)
- Cancel task to prevent acessing freed memory
author
Bart Polot
<bart@net.in.tum.de>
Tue, 14 Feb 2012 10:56:31 +0000
(10:56 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Tue, 14 Feb 2012 10:56:31 +0000
(10:56 +0000)
src/testing/testing.c
patch
|
blob
|
history
diff --git
a/src/testing/testing.c
b/src/testing/testing.c
index 023b607eb9db96663d8b61c4a355cd2b5e4333ac..70da138a7eb36fc83829162320c3a829283a2070 100644
(file)
--- a/
src/testing/testing.c
+++ b/
src/testing/testing.c
@@
-1668,6
+1668,8
@@
GNUNET_TESTING_daemon_stop (struct GNUNET_TESTING_Daemon *d,
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);
}