summaryrefslogtreecommitdiff
path: root/src/exchange-lib/exchange_api_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-05-07 14:07:48 +0200
committerChristian Grothoff <christian@grothoff.org>2017-05-07 14:07:48 +0200
commit0e73c0d4513a360ba3b5bcbe70ef4aeb59f68e3c (patch)
tree0887e31dabaeef49eb2ebd50a1caed9e765b597f /src/exchange-lib/exchange_api_deposit.c
parent76545519c647b66ef99391b503f5d90fd4a43cb4 (diff)
downloadexchange-0e73c0d4513a360ba3b5bcbe70ef4aeb59f68e3c.tar.gz
exchange-0e73c0d4513a360ba3b5bcbe70ef4aeb59f68e3c.tar.bz2
exchange-0e73c0d4513a360ba3b5bcbe70ef4aeb59f68e3c.zip
check json_pack return value, just to be nice
Diffstat (limited to 'src/exchange-lib/exchange_api_deposit.c')
-rw-r--r--src/exchange-lib/exchange_api_deposit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/exchange-lib/exchange_api_deposit.c b/src/exchange-lib/exchange_api_deposit.c
index 7eb6f5b79..72f588f46 100644
--- a/src/exchange-lib/exchange_api_deposit.c
+++ b/src/exchange-lib/exchange_api_deposit.c
@@ -463,6 +463,11 @@ TALER_EXCHANGE_deposit (struct TALER_EXCHANGE_Handle *exchange,
"wire_transfer_deadline", GNUNET_JSON_from_time_abs (wire_deadline),
"coin_sig", GNUNET_JSON_from_data_auto (coin_sig)
);
+ if (NULL == deposit_obj)
+ {
+ GNUNET_break (0);
+ return NULL;
+ }
dh = GNUNET_new (struct TALER_EXCHANGE_DepositHandle);
dh->exchange = exchange;