[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -fix memory corruption
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -fix memory corruption |
Date: |
Sat, 10 Dec 2022 04:29:13 +0100 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 7e7ed01ae -fix memory corruption
7e7ed01ae is described below
commit 7e7ed01ae49037b44b948ee812c7965e23d26594
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sat Dec 10 12:29:07 2022 +0900
-fix memory corruption
---
src/include/gnunet_testing_netjail_lib.h | 2 +-
src/testing/testing_api_cmd_block_until_external_trigger.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/include/gnunet_testing_netjail_lib.h
b/src/include/gnunet_testing_netjail_lib.h
index eb16f6b86..6f1adde41 100644
--- a/src/include/gnunet_testing_netjail_lib.h
+++ b/src/include/gnunet_testing_netjail_lib.h
@@ -397,7 +397,7 @@ struct GNUNET_TESTING_BlockState
/**
* Context for our asynchronous completion.
*/
- struct GNUNET_TESTING_AsyncContext *ac;
+ struct GNUNET_TESTING_AsyncContext ac;
/**
* The label of this command.
diff --git a/src/testing/testing_api_cmd_block_until_external_trigger.c
b/src/testing/testing_api_cmd_block_until_external_trigger.c
index be30ec86b..2219ec246 100644
--- a/src/testing/testing_api_cmd_block_until_external_trigger.c
+++ b/src/testing/testing_api_cmd_block_until_external_trigger.c
@@ -55,7 +55,7 @@ block_until_external_trigger_traits (void *cls,
unsigned int index)
{
struct GNUNET_TESTING_BlockState *bs = cls;
- struct GNUNET_TESTING_AsyncContext *ac = bs->ac;
+ struct GNUNET_TESTING_AsyncContext *ac = &bs->ac;
struct GNUNET_TESTING_Trait traits[] = {
GNUNET_TESTING_make_trait_async_context ((const void *) ac),
GNUNET_TESTING_make_trait_block_state ((const void *) bs),
@@ -114,5 +114,5 @@ GNUNET_TESTING_cmd_block_until_external_trigger (
&block_until_all_peers_started_run,
&block_until_all_peers_started_cleanup,
&block_until_external_trigger_traits,
- bs->ac);
+ &bs->ac);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -fix memory corruption,
gnunet <=