Package: irssi-plugin-xmpp / 0.54-3

singpolyma-null-resource-was-causing-crash-here.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
From: Stephen Paul Weber <singpolyma@singpolyma.net>
Origin: https://github.com/singpolyma/irssi-xmpp/commit/d872b7646666dcba9245608146585fabf73412e2

--- a/src/core/rosters.c
+++ b/src/core/rosters.c
@@ -360,6 +360,7 @@
 	new = own = FALSE;
 	jid = xmpp_strip_resource(full_jid);
 	res = xmpp_extract_resource(full_jid);
+	if(res == NULL) res = g_strdup("");
 	user = rosters_find_user(server->roster, jid, &group, NULL);
 	if (user == NULL) {
 		if (!(own = strcmp(jid, server->jid) == 0