1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-21 03:14:16 -04:00

001 event should free real_address if it already existed. this might happen

with for example irc bouncers.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2437 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-02-13 15:11:47 +00:00 committed by cras
parent f37ea1af1e
commit 264e172abf

View File

@ -456,6 +456,7 @@ static void event_connected(IRC_SERVER_REC *server, const char *data, const char
if (server->real_address == NULL) {
/* set the server address */
g_free(server->real_address);
server->real_address = from == NULL ?
g_strdup(server->connrec->address) : /* shouldn't happen.. */
g_strdup(from);