]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8143 #resolve #comment [mod_rayo] Fix crash caused by client disconnecting from...
authorChris Rienzo <chris.rienzo@citrix.com>
Wed, 9 Sep 2015 21:03:23 +0000 (17:03 -0400)
committerChris Rienzo <chris.rienzo@citrix.com>
Wed, 9 Sep 2015 21:05:58 +0000 (17:05 -0400)
This is caused by the XMPP context's JID -> XMPP stream mapping not being cleaned up on XMPP stream destruction.

src/mod/event_handlers/mod_rayo/xmpp_streams.c

index 7fe27e22fb2113e45895aab4aae6e5d0fe353b49..23a7387db6ca757d21a49cf79022d2e2ebe6cd0e 100644 (file)
@@ -1123,7 +1123,7 @@ static void xmpp_stream_destroy(struct xmpp_stream *stream)
 
        /* remove from available streams */
        switch_mutex_lock(context->streams_mutex);
-       if (stream->jid && !stream->incoming) {
+       if (stream->jid) {
                switch_core_hash_delete(context->routes, stream->jid);
        }
        if (stream->id) {