mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05: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:
parent
f37ea1af1e
commit
264e172abf
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user