diff options
| author | 2022-09-25 22:57:18 +0200 | |
|---|---|---|
| committer | 2022-09-25 22:57:18 +0200 | |
| commit | d86f6ee27f63b120fce952e0905a8c627861ba81 (patch) | |
| tree | 30b2eeb88f5f2838cc8ebc0719c74c11cbf4b3aa /webfinger.c | |
| parent | Fixed some incorrect allocations. (diff) | |
| download | penes-snac2-d86f6ee27f63b120fce952e0905a8c627861ba81.tar.gz penes-snac2-d86f6ee27f63b120fce952e0905a8c627861ba81.tar.xz penes-snac2-d86f6ee27f63b120fce952e0905a8c627861ba81.zip | |
Backported from xs.
Diffstat (limited to 'webfinger.c')
| -rw-r--r-- | webfinger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webfinger.c b/webfinger.c index e9f0893..6476bba 100644 --- a/webfinger.c +++ b/webfinger.c | |||
| @@ -82,7 +82,7 @@ int webfinger_request(char *qs, char **actor, char **user) | |||
| 82 | char *v; | 82 | char *v; |
| 83 | 83 | ||
| 84 | while (xs_list_iter(&list, &v)) { | 84 | while (xs_list_iter(&list, &v)) { |
| 85 | if (xs_type(v) == XSTYPE_SOD) { | 85 | if (xs_type(v) == XSTYPE_DICT) { |
| 86 | char *type = xs_dict_get(v, "type"); | 86 | char *type = xs_dict_get(v, "type"); |
| 87 | 87 | ||
| 88 | if (type && strcmp(type, "application/activity+json") == 0) { | 88 | if (type && strcmp(type, "application/activity+json") == 0) { |