snac2

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

commit f83ff46b6b1e12163a6921b980a56db7a5a48d50
parent 890e448148ec05b085b67c6ffb5b7c62999756e9
Author: default <nobody@localhost>
Date:   Fri, 23 Dec 2022 12:20:54 +0100

Fixed crash on some webfinger errors.

Diffstat:
Mactivitypub.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/activitypub.c b/activitypub.c @@ -620,8 +620,8 @@ d_char *msg_note(snac *snac, char *content, char *rcpts, char *in_reply_to, char to = xs_list_append(to, a); /* add this author to the tag list as a mention */ - xs *t_href; - xs *t_name; + xs *t_href = NULL; + xs *t_name = NULL; if (!xs_is_null(a) && valid_status(webfinger_request(a, &t_href, &t_name))) { xs *t = xs_dict_new();