aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keys.c')
-rw-r--r--src/exchange/taler-exchange-httpd_keys.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c
index 4fb8a717..4761f314 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -1916,18 +1916,23 @@ create_krd (struct TEH_KeyStateHandle *ksh,
/* flag our findings so far */
has_extensions = true;
- GNUNET_assert (NULL != extension->config_json);
ext = GNUNET_JSON_PACK (
GNUNET_JSON_pack_bool ("critical",
extension->critical),
GNUNET_JSON_pack_string ("version",
- extension->version),
- GNUNET_JSON_pack_object_incref ("config",
- extension->config_json)
+ extension->version)
);
GNUNET_assert (NULL != ext);
+ if (extension->has_config)
+ {
+ GNUNET_assert (extension->config_json);
+ json_object_set_new (ext,
+ "config",
+ extension->config_json);
+ }
+
r = json_object_set_new (
extensions,
extension->name,