aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-08-20 11:55:34 -0300
committerSebastian <sebasjm@gmail.com>2024-08-20 11:57:17 -0300
commite971f3f680adece7643a214cae91891f838f086c (patch)
tree1ce3b93e406e2b2ff790aedc46a57e5344e87ec0 /src
parentf45ef9c626d80b4417d9ea34c43edd95eef1057b (diff)
fix: NULL not allowed for description_i18n, also info and link
Diffstat (limited to 'src')
-rw-r--r--src/kyclogic/kyclogic_api.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c
index 9299e20d9..bc01c223a 100644
--- a/src/kyclogic/kyclogic_api.c
+++ b/src/kyclogic/kyclogic_api.c
@@ -2857,8 +2857,9 @@ TALER_KYCLOGIC_measure_to_requirement (
"INFO"),
GNUNET_JSON_pack_string ("description",
kc->description),
- GNUNET_JSON_pack_object_incref ("description_i18n",
- (json_t *) kc->description_i18n));
+ GNUNET_JSON_pack_allow_null (
+ GNUNET_JSON_pack_object_incref ("description_i18n",
+ (json_t *) kc->description_i18n)));
case TALER_KYCLOGIC_CT_FORM:
GNUNET_assert (offset <= UINT_MAX);
ids = GNUNET_STRINGS_data_to_string_alloc (&shv,
@@ -2898,8 +2899,9 @@ TALER_KYCLOGIC_measure_to_requirement (
xids),
GNUNET_JSON_pack_string ("description",
kc->description),
- GNUNET_JSON_pack_object_incref ("description_i18n",
- (json_t *) kc->description_i18n));
+ GNUNET_JSON_pack_allow_null (
+ GNUNET_JSON_pack_object_incref ("description_i18n",
+ (json_t *) kc->description_i18n)));
GNUNET_free (xids);
return kri;
}