rainscut / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

XmppEngine's iq handler issue #433

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
talk\xmpp\xmppengineimpl_iq.cc

In XmppEngineImpl::HandleIqResponse() check to match to_ with from like below.

    ...
    if (iq_entry->id_ == id && iq_entry->to_ == from) {
      iq_entries_->erase(it);
      iq_entry->iq_handler_->IqResponse(iq_entry, element);
      delete iq_entry;
      return true;
    }
    ...

In facebook chat, roster iq result is like below.

   <iq from="user@chat.facebook.com" to="user@chat.facebook.com/6e0b8071" id="5" type="result">
     ...
   </iq>

The iq_entry->to_ does not match with from of result iq, so result in false.

Original issue reported on code.google.com by tree1...@gmail.com on 12 Apr 2013 at 3:55