mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -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:
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) {
|
if (server->real_address == NULL) {
|
||||||
/* set the server address */
|
/* set the server address */
|
||||||
|
g_free(server->real_address);
|
||||||
server->real_address = from == NULL ?
|
server->real_address = from == NULL ?
|
||||||
g_strdup(server->connrec->address) : /* shouldn't happen.. */
|
g_strdup(server->connrec->address) : /* shouldn't happen.. */
|
||||||
g_strdup(from);
|
g_strdup(from);
|
||||||
|
Loading…
Reference in New Issue
Block a user