From a65823fa3288827513091c9fd74c18af35a9efdd Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Fri, 21 Dec 2018 21:26:35 +0100 Subject: fix "jump to invalid address" --- src/exchange-lib/testing_api_cmd_serialize_keys.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/exchange-lib/testing_api_cmd_serialize_keys.c b/src/exchange-lib/testing_api_cmd_serialize_keys.c index 852c42116..b53263db1 100644 --- a/src/exchange-lib/testing_api_cmd_serialize_keys.c +++ b/src/exchange-lib/testing_api_cmd_serialize_keys.c @@ -183,6 +183,10 @@ connect_with_state_run (void *cls, 0, &serialized_keys)); + TALER_LOG_DEBUG ("Serialized key-state: %s\n", + json_dumps (serialized_keys, + JSON_INDENT (1))); + GNUNET_assert (GNUNET_OK == TALER_TESTING_get_trait_url (state_cmd, @@ -199,6 +203,22 @@ connect_with_state_run (void *cls, TALER_EXCHANGE_OPTION_END); } + +/** + * Cleanup the state of a "connect with state" CMD. Just + * a placeholder to avoid jumping on an invalid address. + * + * @param cls closure. + * @param cmd the command which is being cleaned up. + */ +void +connect_with_state_cleanup + (void *cls, + const struct TALER_TESTING_Command *cmd) +{ + +} + /** * Make a serialize-keys CMD. It will ask for * keys serialization __and__ disconnect from the @@ -243,6 +263,7 @@ TALER_TESTING_cmd_connect_with_state (const char *label, .cls = (char *) state_reference, .label = label, .run = connect_with_state_run, + .cleanup = connect_with_state_cleanup }; return cmd; -- cgit v1.2.3