summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-11-18 18:33:57 +0100
committerChristian Grothoff <christian@grothoff.org>2016-11-18 18:33:57 +0100
commita58a12866221cba8cc724e135bb66c9d6e613fe2 (patch)
tree2b391e46470ed1d76bf999dd9e81a8ee995c9fd6 /src/backend/taler-merchant-httpd.c
parentd9a1a0d844f58d61c8d0e07a440fe75aa6d785f6 (diff)
downloadmerchant-a58a12866221cba8cc724e135bb66c9d6e613fe2.tar.gz
merchant-a58a12866221cba8cc724e135bb66c9d6e613fe2.tar.bz2
merchant-a58a12866221cba8cc724e135bb66c9d6e613fe2.zip
update merchant to match new wire_validate API
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r--src/backend/taler-merchant-httpd.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index 472a4fb7..c5ebe21e 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -430,6 +430,7 @@ instances_iterator_cb (void *cls,
/* used as hashmap keys */
struct GNUNET_HashCode h_pk;
struct GNUNET_HashCode h_id;
+ char *emsg;
iic = cls;
substr = strstr (section, "merchant-instance-");
@@ -500,13 +501,17 @@ instances_iterator_cb (void *cls,
instance_wiresection);
GNUNET_free (instance_wiresection);
- if (GNUNET_YES != iic->plugin->wire_validate (iic->plugin->cls,
- mi->j_wire,
- NULL))
+ if (TALER_EC_NONE !=
+ iic->plugin->wire_validate (iic->plugin->cls,
+ mi->j_wire,
+ NULL,
+ &emsg))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Malformed wireformat\n");
+ "Malformed wireformat: %s\n",
+ emsg);
+ GNUNET_free (emsg);
iic->ret |= GNUNET_SYSERR;
}