summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-13 15:11:47 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-13 15:11:47 +0000
commit264e172abf272caa07f93790b45f61d472b51470 (patch)
treed903944228e2b36f7ff233308d2886091d67fbcd /src
parentf37ea1af1e52127c9967b54705d72fa80a9ac535 (diff)
downloadirssi-264e172abf272caa07f93790b45f61d472b51470.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/irc/core/irc-servers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c
index 0faa299f..11ada92c 100644
--- a/src/irc/core/irc-servers.c
+++ b/src/irc/core/irc-servers.c
@@ -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);