--- a/libpurple/protocols/jabber/caps.c Wed Oct 02 03:43:56 2019 -0400 +++ b/libpurple/protocols/jabber/caps.c Wed Oct 02 06:21:41 2019 -0400 @@ -503,14 +503,14 @@ jabber_caps_client_info_destroy(info); info = value; } else { - JabberCapsTuple *n_key = (JabberCapsTuple *)&info->tuple; + JabberCapsTuple *n_key = NULL; - if (G_UNLIKELY(n_key == NULL)) { + if (G_UNLIKELY(info == NULL)) { g_warn_if_reached(); - jabber_caps_client_info_destroy(info); return; } + n_key = (JabberCapsTuple *)&info->tuple; n_key->node = userdata->node; n_key->ver = userdata->ver; n_key->hash = userdata->hash;