commit bde5748

default  ·  2024-12-19 04:37:27 +0000 UTC
parent 8c53411
Minor webfinger tweak.
1 files changed,  +5, -1
+5, -1
 1@@ -82,7 +82,11 @@ int webfinger_request_signed(snac *snac, const char *qs, xs_str **actor, xs_str
 2 
 3     if (obj == NULL && valid_status(status) && payload) {
 4         obj = xs_json_loads(payload);
 5-        object_add(cached_qs, obj);
 6+
 7+        if (obj)
 8+            object_add(cached_qs, obj);
 9+        else
10+            status = HTTP_STATUS_BAD_REQUEST;
11     }
12 
13     if (obj) {