diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-05-07 14:07:48 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-05-07 14:07:48 +0200 |
commit | 0e73c0d4513a360ba3b5bcbe70ef4aeb59f68e3c (patch) | |
tree | 0887e31dabaeef49eb2ebd50a1caed9e765b597f /src/exchange-lib/exchange_api_admin.c | |
parent | 76545519c647b66ef99391b503f5d90fd4a43cb4 (diff) | |
download | exchange-0e73c0d4513a360ba3b5bcbe70ef4aeb59f68e3c.tar.xz |
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.c | 5 |
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 e6cb8101c..6049c544d 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; |