snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit bde5748a6e52e6f124e708a64e95827d87c8850c
parent 8c53411a00b6c2127a5bed25bf282573767055b2
Author: default <nobody@localhost>
Date:   Thu, 19 Dec 2024 05:37:27 +0100

Minor webfinger tweak.

Diffstat:
Mwebfinger.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/webfinger.c b/webfinger.c @@ -82,7 +82,11 @@ int webfinger_request_signed(snac *snac, const char *qs, xs_str **actor, xs_str if (obj == NULL && valid_status(status) && payload) { obj = xs_json_loads(payload); - object_add(cached_qs, obj); + + if (obj) + object_add(cached_qs, obj); + else + status = HTTP_STATUS_BAD_REQUEST; } if (obj) {