From 1fdec6b1bff1475eaee6246442d303e3c52251ce Mon Sep 17 00:00:00 2001 From: ng0 Date: Wed, 17 Apr 2019 19:25:43 +0000 Subject: [PATCH] Refactor for GNUNET_memcmp --- src/exchange/taler-exchange-httpd_refresh_reveal.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/exchange/taler-exchange-httpd_refresh_reveal.c b/src/exchange/taler-exchange-httpd_refresh_reveal.c index 14dd12ad2..bdf59c37b 100644 --- a/src/exchange/taler-exchange-httpd_refresh_reveal.c +++ b/src/exchange/taler-exchange-httpd_refresh_reveal.c @@ -399,9 +399,8 @@ refresh_reveal_transaction (void *cls, } /* Verify rc_expected matches rc */ - if (0 != memcmp (&rctx->rc, - &rc_expected, - sizeof (struct TALER_RefreshCommitmentP))) + if (0 != GNUNET_memcmp (&rctx->rc, + &rc_expected)) { GNUNET_break_op (0); *mhd_ret = reply_refresh_reveal_missmatch (connection,