From 5f74987ee76bf4bdf94f5ea3017078ad65f97aa7 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 11 Jun 2011 17:09:50 +0100 Subject: Crash-bug (NULL-ptr deref) fix in channel part routine. --- irc_im.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'irc_im.c') 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; } -- cgit v1.2.3