commit 7afece32ac984ff15f3226785ce8337bb381f1ea
parent 5f47708b5583014cee293baa23b734dda584a504
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 12 Jun 2025 22:28:19 +0200
memset either array if either array is non-empty, not only if both are non-empty
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c
@@ -3581,12 +3581,14 @@ TEH_keys_denomination_batch_sign (
}
}
- if ( (0 != csrs_pos) &&
- (0 != rsrs_pos) )
+ if (0 != rsrs_pos)
{
memset (rs,
0,
sizeof (rs));
+ }
+ if (0 != csrs_pos)
+ {
memset (cs,
0,
sizeof (cs));