diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-03-05 21:41:55 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-03-05 21:41:55 +0100 |
commit | ca5f0c4d6f2969bfbde9d8cb5fc7f90a95c3d712 (patch) | |
tree | 96018c9e83f98bae837c6fd27c594ce6aad2c0d7 /src/lib/auditor_api_exchanges.c | |
parent | 5985f73d4219fd9bbfbc640aeaca409cdf571b27 (diff) |
fix #6786: do not die on bogus URL
Diffstat (limited to 'src/lib/auditor_api_exchanges.c')
-rw-r--r-- | src/lib/auditor_api_exchanges.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/auditor_api_exchanges.c b/src/lib/auditor_api_exchanges.c index ef7a3569e..0fe4ce287 100644 --- a/src/lib/auditor_api_exchanges.c +++ b/src/lib/auditor_api_exchanges.c @@ -221,7 +221,11 @@ TALER_AUDITOR_list_exchanges (struct TALER_AUDITOR_Handle *auditor, leh->cb = cb; leh->cb_cls = cb_cls; leh->url = TALER_AUDITOR_path_to_url_ (auditor, "/exchanges"); - + if (NULL == leh->url) + { + GNUNET_free (leh); + return NULL; + } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "URL for list-exchanges: `%s'\n", leh->url); |