summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-02-09 11:09:00 -0300
committerSebastian <sebasjm@gmail.com>2024-02-09 11:09:00 -0300
commit5cdcdfb2c4728f4c0afcebaad7041677cfdffcb6 (patch)
tree1bb6a740e94dc768b105ac6ba9f36116fd1b3f83 /src/backend
parente1d4b43af59fe8201e142103d4872c0727c2ca9e (diff)
downloadmerchant-5cdcdfb2c4728f4c0afcebaad7041677cfdffcb6.tar.gz
merchant-5cdcdfb2c4728f4c0afcebaad7041677cfdffcb6.tar.bz2
merchant-5cdcdfb2c4728f4c0afcebaad7041677cfdffcb6.zip
fix #8354
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-otp-devices-ID.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_private-patch-otp-devices-ID.c b/src/backend/taler-merchant-httpd_private-patch-otp-devices-ID.c
index cb784b8d..596b8b09 100644
--- a/src/backend/taler-merchant-httpd_private-patch-otp-devices-ID.c
+++ b/src/backend/taler-merchant-httpd_private-patch-otp-devices-ID.c
@@ -46,8 +46,11 @@ TMH_private_patch_otp_devices_ID (const struct TMH_RequestHandler *rh,
GNUNET_JSON_spec_uint64 ("otp_ctr",
&tp.otp_ctr),
NULL),
- TALER_JSON_spec_otp_key ("otp_key",
- (const char **) &tp.otp_key),
+ GNUNET_JSON_spec_mark_optional(
+
+ TALER_JSON_spec_otp_key ("otp_key",
+ (const char **) &tp.otp_key),
+ NULL),
GNUNET_JSON_spec_end ()
};