commit 7c232ed1434da95bb9c3d2fd1f0f76fe8c5ac85b
parent 2d10804884d1308057f4355592b1df1f32cfb148
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Fri, 14 Aug 2026 22:41:16 +0200
avoid NULL deref during clean up if wire fees failed to parse
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
@@ -181,6 +181,8 @@ static void
free_fees (struct TALER_EXCHANGE_WireFeesByMethod *wfm,
unsigned int wfm_len)
{
+ if (NULL == wfm)
+ return;
for (unsigned int i = 0; i<wfm_len; i++)
{
struct TALER_EXCHANGE_WireFeesByMethod *wfmi = &wfm[i];