libpurple/protocols/jabber/caps.c

changeset 39913
ce96d4639dc7
parent 39897
16b440d4ab36
child 40062
d25228fc7b8e
--- 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;

mercurial