diff options
Diffstat (limited to 'src/lib/exchange_api_refresh_common.c')
-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, 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; |