diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-10 12:29:07 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-10 12:29:07 +0900 |
commit | 7e7ed01ae49037b44b948ee812c7965e23d26594 (patch) | |
tree | d1b423ea3b433dd1c0aa5309f8aee3bfdc915f26 /src | |
parent | d4f9e18c6b93143f14b953c3d4fb8cc9c70cd9fd (diff) | |
download | gnunet-7e7ed01ae49037b44b948ee812c7965e23d26594.tar.gz gnunet-7e7ed01ae49037b44b948ee812c7965e23d26594.zip |
-fix memory corruption
Diffstat (limited to 'src')
-rw-r--r-- | src/include/gnunet_testing_netjail_lib.h | 2 | ||||
-rw-r--r-- | 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 | |||
397 | /** | 397 | /** |
398 | * Context for our asynchronous completion. | 398 | * Context for our asynchronous completion. |
399 | */ | 399 | */ |
400 | struct GNUNET_TESTING_AsyncContext *ac; | 400 | struct GNUNET_TESTING_AsyncContext ac; |
401 | 401 | ||
402 | /** | 402 | /** |
403 | * The label of this command. | 403 | * 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, | |||
55 | unsigned int index) | 55 | unsigned int index) |
56 | { | 56 | { |
57 | struct GNUNET_TESTING_BlockState *bs = cls; | 57 | struct GNUNET_TESTING_BlockState *bs = cls; |
58 | struct GNUNET_TESTING_AsyncContext *ac = bs->ac; | 58 | struct GNUNET_TESTING_AsyncContext *ac = &bs->ac; |
59 | struct GNUNET_TESTING_Trait traits[] = { | 59 | struct GNUNET_TESTING_Trait traits[] = { |
60 | GNUNET_TESTING_make_trait_async_context ((const void *) ac), | 60 | GNUNET_TESTING_make_trait_async_context ((const void *) ac), |
61 | GNUNET_TESTING_make_trait_block_state ((const void *) bs), | 61 | GNUNET_TESTING_make_trait_block_state ((const void *) bs), |
@@ -114,5 +114,5 @@ GNUNET_TESTING_cmd_block_until_external_trigger ( | |||
114 | &block_until_all_peers_started_run, | 114 | &block_until_all_peers_started_run, |
115 | &block_until_all_peers_started_cleanup, | 115 | &block_until_all_peers_started_cleanup, |
116 | &block_until_external_trigger_traits, | 116 | &block_until_external_trigger_traits, |
117 | bs->ac); | 117 | &bs->ac); |
118 | } | 118 | } |