summaryrefslogtreecommitdiff
path: root/src/exchange-lib/exchange_api_admin.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_admin.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_admin.c')
-rw-r--r--src/exchange-lib/exchange_api_admin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/exchange-lib/exchange_api_admin.c b/src/exchange-lib/exchange_api_admin.c
index e6cb8101..6049c544 100644
--- a/src/exchange-lib/exchange_api_admin.c
+++ b/src/exchange-lib/exchange_api_admin.c
@@ -187,6 +187,11 @@ TALER_EXCHANGE_admin_add_incoming (struct TALER_EXCHANGE_Handle *exchange,
"execution_date", GNUNET_JSON_from_time_abs (execution_date),
"sender_account_details", sender_account_details,
"transfer_details", transfer_details);
+ if (NULL == admin_obj)
+ {
+ GNUNET_break (0);
+ return NULL;
+ }
aai = GNUNET_new (struct TALER_EXCHANGE_AdminAddIncomingHandle);
aai->exchange = exchange;
aai->cb = res_cb;