summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-04-17 19:25:24 +0000
committerng0 <ng0@n0.is>2019-04-17 19:25:24 +0000
commitee9cff3555f62535115a0712e6846f67542ac78d (patch)
tree42af2f778552707fe32c355b0b0df6c1cd1cb931
parent28123fd1fc5e9084c99ba70364ff8feaaa62d501 (diff)
downloadexchange-ee9cff3555f62535115a0712e6846f67542ac78d.tar.gz
exchange-ee9cff3555f62535115a0712e6846f67542ac78d.tar.bz2
exchange-ee9cff3555f62535115a0712e6846f67542ac78d.zip
Refactor for GNUNET_memcmp
-rw-r--r--src/exchange/taler-exchange-httpd_deposit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c
index 2aaa3c74..0cc16c25 100644
--- a/src/exchange/taler-exchange-httpd_deposit.c
+++ b/src/exchange/taler-exchange-httpd_deposit.c
@@ -467,9 +467,8 @@ TEH_DEPOSIT_handler_deposit (struct TEH_RequestHandler *rh,
TALER_EC_DEPOSIT_INVALID_WIRE_FORMAT_JSON,
"wire");
}
- if (0 != memcmp (&deposit.h_wire,
- &my_h_wire,
- sizeof (struct GNUNET_HashCode)))
+ if (0 != GNUNET_memcmp (&deposit.h_wire,
+ &my_h_wire))
{
/* Client hashed contract differently than we did, reject */
GNUNET_JSON_parse_free (spec);