diff options
| author | default <nobody@localhost> | 2024-12-19 05:37:27 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-12-19 05:37:27 +0100 |
| commit | bde5748a6e52e6f124e708a64e95827d87c8850c (patch) | |
| tree | 9431586fa334552cee15afb6f850095e747c01a5 | |
| parent | 8c53411a00b6c2127a5bed25bf282573767055b2 (diff) | |
Minor webfinger tweak.
| -rw-r--r-- | webfinger.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webfinger.c b/webfinger.c index 893d777..85123bc 100644 --- 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) { |