aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-10-15 19:59:43 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2019-10-15 19:59:43 +0200
commit1d7441fb137a2bce385c81d411e8ef38a509aca8 (patch)
treeb63c182eb9c5f1439d7f3ef2ea1778c1197dd4e9
parent4d4d0dbd9365c76496eb0707bf339f82d2461a98 (diff)
downloadmerchant-1d7441fb137a2bce385c81d411e8ef38a509aca8.tar.gz
merchant-1d7441fb137a2bce385c81d411e8ef38a509aca8.tar.bz2
merchant-1d7441fb137a2bce385c81d411e8ef38a509aca8.zip
memcmp() -> GNUNET_memcmp()
-rw-r--r--src/backend/taler-merchant-httpd_pay.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c
index 300ab9e5..569b71d4 100644
--- a/src/backend/taler-merchant-httpd_pay.c
+++ b/src/backend/taler-merchant-httpd_pay.c
@@ -1406,9 +1406,8 @@ parse_pay (struct MHD_Connection *connection,
session_id = json_string_value (json_object_get (root,
"session_id"));
- if (0 != memcmp (&merchant_pub,
- &pc->mi->pubkey,
- sizeof (struct GNUNET_CRYPTO_EddsaPublicKey)))
+ if (0 != GNUNET_memcmp (&merchant_pub,
+ &pc->mi->pubkey))
{
TALER_LOG_INFO ("Unknown merchant public key included in payment (usually wrong instance chosen)\n");
TMH_RESPONSE_reply_rc (connection,