diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-21 15:25:12 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-21 15:25:12 +0200 |
commit | 092944819d2bf442282f0913c01bf1dc3adb2866 (patch) | |
tree | b721b162a8b985f42a8a4f03f8be96e275e8f6d6 | |
parent | 32bce6da431371fc747e22110b89eda63290a9af (diff) | |
download | exchange-092944819d2bf442282f0913c01bf1dc3adb2866.tar.gz exchange-092944819d2bf442282f0913c01bf1dc3adb2866.zip |
fix #6195
-rw-r--r-- | src/lib/exchange_api_refresh_common.c | 3 |
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 f26c5bcc4..9e9f6e0c0 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, | |||
266 | buf, | 266 | buf, |
267 | sizeof (uint32_t)); | 267 | sizeof (uint32_t)); |
268 | pbuf_size = ntohl (be); | 268 | pbuf_size = ntohl (be); |
269 | if (size < sizeof (uint32_t) + pbuf_size) | 269 | if ( (size < sizeof (uint32_t) + pbuf_size) || |
270 | (sizeof (uint32_t) + pbuf_size < pbuf_size) ) | ||
270 | { | 271 | { |
271 | GNUNET_break (0); | 272 | GNUNET_break (0); |
272 | *ok = GNUNET_NO; | 273 | *ok = GNUNET_NO; |