summaryrefslogtreecommitdiff
path: root/src/exchange-lib/testing_api_cmd_wire.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-01-08 15:59:14 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2019-01-08 15:59:14 +0100
commit93a6bbfc58ec48c774ecf475ec7e58184504bbc4 (patch)
tree96a3688eb6ee3afc713fbce605f559e7dc2b3c12 /src/exchange-lib/testing_api_cmd_wire.c
parent00596e245eaa8a242769fc844c9d600e874bbfaa (diff)
downloadexchange-93a6bbfc58ec48c774ecf475ec7e58184504bbc4.tar.gz
exchange-93a6bbfc58ec48c774ecf475ec7e58184504bbc4.tar.bz2
exchange-93a6bbfc58ec48c774ecf475ec7e58184504bbc4.zip
5136: fix multiple invocations of /keys callback.
Basically, we allow such a callback to be invoked only once. Subsequent invocations (due to keys updates / whatever) cause the callback to simply return in a do-nothing fashion. Also: adding a /wire CMD - that uses /keys - after serilized keys have been loaded.
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_wire.c')
-rw-r--r--src/exchange-lib/testing_api_cmd_wire.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/exchange-lib/testing_api_cmd_wire.c b/src/exchange-lib/testing_api_cmd_wire.c
index 283e8769f..113545499 100644
--- a/src/exchange-lib/testing_api_cmd_wire.c
+++ b/src/exchange-lib/testing_api_cmd_wire.c
@@ -94,6 +94,7 @@ wire_cb (void *cls,
&ws->is->commands[ws->is->ip];
struct TALER_Amount expected_fee;
+ TALER_LOG_DEBUG ("Checking parsed /wire response\n");
ws->wh = NULL;
if (ws->expected_response_code != http_status)
{
@@ -137,6 +138,8 @@ wire_cb (void *cls,
}
}
}
+ TALER_LOG_DEBUG ("Freeing method '%s'\n",
+ method);
GNUNET_free (method);
}
if (GNUNET_OK != ws->method_found)
@@ -148,6 +151,7 @@ wire_cb (void *cls,
return;
}
}
+
TALER_TESTING_interpreter_next (ws->is);
}