avoid failure mode
This commit is contained in:
parent
3fa945e796
commit
3e3fb304f4
@ -228,8 +228,13 @@ extract_amount (void *cls,
|
|||||||
val_name,
|
val_name,
|
||||||
frac_name,
|
frac_name,
|
||||||
&amount_nbo);
|
&amount_nbo);
|
||||||
TALER_amount_ntoh (r_amount,
|
if (GNUNET_OK == ret)
|
||||||
&amount_nbo);
|
TALER_amount_ntoh (r_amount,
|
||||||
|
&amount_nbo);
|
||||||
|
else
|
||||||
|
memset (r_amount,
|
||||||
|
0,
|
||||||
|
sizeof (struct TALER_Amount));
|
||||||
GNUNET_free (val_name);
|
GNUNET_free (val_name);
|
||||||
GNUNET_free (frac_name);
|
GNUNET_free (frac_name);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user