aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2011-06-11 17:09:50 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2011-06-11 17:09:50 +0100
commit5f74987ee76bf4bdf94f5ea3017078ad65f97aa7 (patch)
tree22b58aae88ac283fa39fdc3c10a2adf126ca8473 /irc_im.c
parent5983eca9ac1187eb1407eece7d7ad72ef5e091b0 (diff)
Crash-bug (NULL-ptr deref) fix in channel part routine.
Diffstat (limited to 'irc_im.c')
-rw-r--r--irc_im.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/irc_im.c b/irc_im.c
index 337cd30b..6add08dd 100644
--- a/irc_im.c
+++ b/irc_im.c
@@ -907,7 +907,8 @@ static gboolean bee_irc_channel_chat_part( irc_channel_t *ic, const char *msg )
/* Remove references in both directions now. We don't need each other anymore. */
ic->data = NULL;
- c->ui_data = NULL;
+ if( c )
+ c->ui_data = NULL;
return TRUE;
}