diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-10-06 20:07:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-10-06 21:11:49 +0200 |
commit | e6a8b181f8e242e78c5c893c751d8ab179987fd2 (patch) | |
tree | 0a213101b5bb9ca3ade5b5bc2ba12ebceab5d067 /src/backend/taler-merchant-httpd.c | |
parent | b23781154ace70764e0c65efa1d49abba004dbf2 (diff) | |
download | merchant-e6a8b181f8e242e78c5c893c751d8ab179987fd2.tar.gz merchant-e6a8b181f8e242e78c5c893c751d8ab179987fd2.tar.bz2 merchant-e6a8b181f8e242e78c5c893c751d8ab179987fd2.zip |
check return value from TALER_JSON_hash
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r-- | src/backend/taler-merchant-httpd.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c index 437537d5..15086cc2 100644 --- a/src/backend/taler-merchant-httpd.c +++ b/src/backend/taler-merchant-httpd.c @@ -234,7 +234,7 @@ url_handler (void *cls, for (unsigned int i=0;NULL != handlers[i].url;i++) { struct TMH_RequestHandler *rh = &handlers[i]; - + if ( (0 == strcasecmp (url, rh->url)) && ( (NULL == rh->method) || @@ -564,20 +564,21 @@ instances_iterator_cb (void *cls, iic->ret |= GNUNET_SYSERR; } - if (GNUNET_YES != TALER_JSON_hash (mi->j_wire, - &mi->h_wire)) + if (GNUNET_OK != + TALER_JSON_hash (mi->j_wire, + &mi->h_wire)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to hash wireformat\n"); iic->ret |= GNUNET_SYSERR; } - #define EXTRADEBUG - #ifdef EXTRADEBUGG +#define EXTRADEBUG +#ifdef EXTRADEBUGG GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Found wireformat instance:\n"); json_dumpf (mi->j_wire, stdout, 0); printf ("\n"); - #endif +#endif GNUNET_CRYPTO_hash (mi->id, strlen (mi->id), |