diff options
author | Timo Sirainen <cras@irssi.org> | 2002-08-26 15:12:32 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-08-26 15:12:32 +0000 |
commit | 1b8e6d2e5b5deba38be6286f71181f29c07ee289 (patch) | |
tree | bc7861b560ca4b4416c5fa0d63f376218ca2d130 /src/irc | |
parent | 4bb26bb9518a0166e2102eef139b518fae8d20b6 (diff) | |
download | irssi-1b8e6d2e5b5deba38be6286f71181f29c07ee289.zip |
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
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/irc-queries.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |