Package: ircii
Version: 20051015-1
Severity: normal
Tags: patch

ircii segfaults in the following example (assuming no server is
anwering for localhost):

ircii -b bla localhost
/set help_window on
/help

(last line is a newline to exit the help window)

The following patch fixes avoids the segfault:

Index: ircii/source/window.c
===================================================================
--- ircii.orig/source/window.c  2006-10-15 12:55:32.507904955 +0200
+++ ircii/source/window.c       2006-10-15 12:55:45.787636605 +0200
@@ -1421,6 +1421,9 @@
        int     flag = 1;
        ChannelList     *chan;
 
+       if (window->server == -1)
+               return;
+
        while ((tmp = traverse_all_windows(&flag)))
                if (window != tmp && tmp->server == window->server)
                {

Hochachtungsvoll,
        Bernhard R. Link


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to