summaryrefslogtreecommitdiff
path: root/src/exchange-lib
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-12-21 21:26:35 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-12-21 21:26:35 +0100
commita65823fa3288827513091c9fd74c18af35a9efdd (patch)
tree93dcbad9fdf92b16f0ed631c2c53edc81a33d666 /src/exchange-lib
parentea80ab4f4506d77fe9c7be6ce62e1f2f9b14694d (diff)
downloadexchange-a65823fa3288827513091c9fd74c18af35a9efdd.tar.gz
exchange-a65823fa3288827513091c9fd74c18af35a9efdd.tar.bz2
exchange-a65823fa3288827513091c9fd74c18af35a9efdd.zip
fix "jump to invalid address"
Diffstat (limited to 'src/exchange-lib')
-rw-r--r--src/exchange-lib/testing_api_cmd_serialize_keys.c21
1 files changed, 21 insertions, 0 deletions
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;