From: Chris Rienzo Date: Wed, 9 Sep 2015 21:03:23 +0000 (-0400) Subject: FS-8143 #resolve #comment [mod_rayo] Fix crash caused by client disconnecting from... X-Git-Tag: v1.4.22~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12b2880b06837feae4fa164308c77c609eb293dd;p=thirdparty%2Ffreeswitch.git FS-8143 #resolve #comment [mod_rayo] Fix crash caused by client disconnecting from mod_rayo while a message is being delivered to that client. This is caused by the XMPP context's JID -> XMPP stream mapping not being cleaned up on XMPP stream destruction. --- diff --git a/src/mod/event_handlers/mod_rayo/xmpp_streams.c b/src/mod/event_handlers/mod_rayo/xmpp_streams.c index 7fe27e22fb..23a7387db6 100644 --- a/src/mod/event_handlers/mod_rayo/xmpp_streams.c +++ b/src/mod/event_handlers/mod_rayo/xmpp_streams.c @@ -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) {