summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-21 15:25:12 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-21 15:25:12 +0200
commit092944819d2bf442282f0913c01bf1dc3adb2866 (patch)
treeb721b162a8b985f42a8a4f03f8be96e275e8f6d6
parent32bce6da431371fc747e22110b89eda63290a9af (diff)
downloadexchange-092944819d2bf442282f0913c01bf1dc3adb2866.tar.gz
exchange-092944819d2bf442282f0913c01bf1dc3adb2866.tar.bz2
exchange-092944819d2bf442282f0913c01bf1dc3adb2866.zip
fix #6195
-rw-r--r--src/lib/exchange_api_refresh_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/exchange_api_refresh_common.c b/src/lib/exchange_api_refresh_common.c
index f26c5bcc..9e9f6e0c 100644
--- a/src/lib/exchange_api_refresh_common.c
+++ b/src/lib/exchange_api_refresh_common.c
@@ -266,7 +266,8 @@ deserialize_denomination_key (struct TALER_DenominationPublicKey *dk,
buf,
sizeof (uint32_t));
pbuf_size = ntohl (be);
- if (size < sizeof (uint32_t) + pbuf_size)
+ if ( (size < sizeof (uint32_t) + pbuf_size) ||
+ (sizeof (uint32_t) + pbuf_size < pbuf_size) )
{
GNUNET_break (0);
*ok = GNUNET_NO;