From 1b8e6d2e5b5deba38be6286f71181f29c07ee289 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 26 Aug 2002 15:12:32 +0000 Subject: [PATCH] Don't crash if someone msgs you without host address (eg. dircproxy). Fix by Antti.Siiskonen@tut.fi git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2886 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-queries.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/irc/core/irc-queries.c b/src/irc/core/irc-queries.c index 5592ede7..0ca1b94e 100644 --- a/src/irc/core/irc-queries.c +++ b/src/irc/core/irc-queries.c @@ -57,7 +57,8 @@ static void check_query_changes(IRC_SERVER_REC *server, const char *nick, query_change_nick(query, nick); } - if (query->address == NULL || strcmp(query->address, address) != 0) { + if (address != NULL && (query->address == NULL || + strcmp(query->address, address) != 0)) { /* host changed */ query_change_address(query, address); }