Changeset c34247d for protocols


Ignore:
Timestamp:
2015-11-23T17:38:11Z (4 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
9c8dbc7
Parents:
2f8e3ca
Message:

jabber_chat_join_failed: add a null check before freeing the chat

Had this one in a stash, i think it's about trying to join a channel
with an invalid JID and getting an error with a different JID back, so
doing jabber_chat_by_jid() doesn't find it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/conference.c

    r2f8e3ca rc34247d  
    122122        }
    123123        if (bud) {
    124                 jabber_chat_free(jabber_chat_by_jid(ic, bud->bare_jid));
     124                struct groupchat *c = jabber_chat_by_jid(ic, bud->bare_jid);
     125                if (c) {
     126                        jabber_chat_free(c);
     127                }
    125128        }
    126129
Note: See TracChangeset for help on using the changeset viewer.