From 06a33691f4886134e39149743d4accfc7b68e1d9 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 3 Feb 2002 22:28:09 +0000 Subject: make sure redirect_continue is set to NULL if it contains the redirection that is being destroyed. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2385 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/servers-redirect.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/irc/core') diff --git a/src/irc/core/servers-redirect.c b/src/irc/core/servers-redirect.c index 802bd0aa..c75e87e8 100644 --- a/src/irc/core/servers-redirect.c +++ b/src/irc/core/servers-redirect.c @@ -428,6 +428,9 @@ static void redirect_abort(IRC_SERVER_REC *server, REDIRECT_REC *rec) signal_emit(rec->last_signal, 1, server); } + if (server->redirect_continue == rec) + server->redirect_continue = NULL; + server_redirect_destroy(rec); } -- cgit v1.2.3