From 7e7ed01ae49037b44b948ee812c7965e23d26594 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Sat, 10 Dec 2022 12:29:07 +0900 Subject: -fix memory corruption --- src/testing/testing_api_cmd_block_until_external_trigger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/testing') 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); } -- cgit v1.2.3