We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 307f16c commit dd33f5fCopy full SHA for dd33f5f
xmpp-vala/src/module/roster/module.vala
@@ -47,6 +47,10 @@ public class Module : XmppStreamModule, Iq.Handler {
47
public void on_iq_set(XmppStream stream, Iq.Stanza iq) {
48
StanzaNode? query_node = iq.stanza.get_subnode("query", NS_URI);
49
if (query_node == null) return;
50
+ if (!iq.from.equals(stream.get_flag(Bind.Flag.IDENTITY).my_jid.bare_jid)) {
51
+ warning("Received alledged roster push from %s, ignoring", iq.from.to_string());
52
+ return;
53
+ }
54
55
Flag flag = stream.get_flag(Flag.IDENTITY);
56
Item item = new Item.from_stanza_node(query_node.get_subnode("item", NS_URI));
0 commit comments