From 64216cb51822466cd2c7e20a0e1abf391cb6667b Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Mon, 2 Sep 2013 01:32:14 +0000 Subject: [PATCH] If we send an IQ to a server allow "from" to be empty --- wocky/wocky-c2s-porter.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wocky/wocky-c2s-porter.c b/wocky/wocky-c2s-porter.c index 8f0daa0..ce174cb 100644 --- a/wocky/wocky-c2s-porter.c +++ b/wocky/wocky-c2s-porter.c @@ -859,6 +859,12 @@ check_spoofing (WockyC2SPorter *self, goto finally; } + /** If we sent an IQ to the server allow the server to omit 'to' + * in the reply. */ + if (from == NULL && !wocky_strdiff (should_be_from, self->priv->domain)) { + goto finally; + } + /* if we sent an IQ to our full or bare JID, allow our server to omit 'to' * in the reply (Prosody 0.6.1 does this with the resulting error if we * send disco#info to our own bare JID), or to use our full JID. */ -- 1.8.3.4