Changeset 7d4ffc2


Ignore:
Timestamp:
2012-02-17T10:20:28Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
c59f594
Parents:
dcf155d
Message:

Fixing NULL pointer dereference in irc_channel_free(). This seems to happen
for example when the user gets invited to a channel that already exists.
Separately, I should handle invites like that better. Will file a bug for
that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_channel.c

    rdcf155d r7d4ffc2  
    116116int irc_channel_free( irc_channel_t *ic )
    117117{
    118         irc_t *irc = ic->irc;
     118        irc_t *irc;
    119119        GSList *l;
     120       
     121        if( ic == NULL )
     122                return 0;
     123        irc = ic->irc;
    120124       
    121125        if( ic->flags & IRC_CHANNEL_JOINED )
Note: See TracChangeset for help on using the changeset viewer.