diff src/protocols/oscar/ssi.c @ 4358:2b8abf7f9cc1

[gaim-migrate @ 4624] Aubin has the eyes of an Eagle, and the talons of the restaurant place that Lana Lang runs on Smallville. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 20 Jan 2003 07:00:10 +0000
parents 9fcc9eb94cae
children 4bb433a7331c
line wrap: on
line diff
--- a/src/protocols/oscar/ssi.c	Mon Jan 20 06:28:08 2003 +0000
+++ b/src/protocols/oscar/ssi.c	Mon Jan 20 07:00:10 2003 +0000
@@ -1376,10 +1376,10 @@
 		aimbs_get16(bs);
 		aim_bstream_advance(bs, aimbs_get16(bs));
 
-		del = aim_ssi_itemlist_find(sess->ssi.local, gid, bid);
-		aim_ssi_itemlist_del(&sess->ssi.local, del);
-		del = aim_ssi_itemlist_find(sess->ssi.official, gid, bid);
-		aim_ssi_itemlist_del(&sess->ssi.official, del);
+		if ((del = aim_ssi_itemlist_find(sess->ssi.local, gid, bid)))
+			aim_ssi_itemlist_del(&sess->ssi.local, del);
+		if ((del = aim_ssi_itemlist_find(sess->ssi.official, gid, bid)))
+			aim_ssi_itemlist_del(&sess->ssi.official, del);
 
 		if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype)))
 			ret = userfunc(sess, rx);