summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorLukas Mai <l.mai@web.de>2016-01-06 12:45:18 +0100
committerLukas Mai <l.mai@web.de>2016-01-06 12:45:18 +0100
commit837e03bd8f1be71ca26e3c2581b5444dcb5fe73f (patch)
tree4ee9a8573982634530a55acf762e6919e5ad94de /src/irc
parent787956af3aac001755ec87d52cbb28f7c91800e1 (diff)
downloadirssi-837e03bd8f1be71ca26e3c2581b5444dcb5fe73f.zip
irssiproxy: avoid using pointer after freeing it
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/proxy/listen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/proxy/listen.c b/src/irc/proxy/listen.c
index dcc94e6b..5dc9a704 100644
--- a/src/irc/proxy/listen.c
+++ b/src/irc/proxy/listen.c
@@ -681,8 +681,8 @@ static void read_settings(void)
while (add_listens != NULL) {
rec = add_listens->data;
add_listen(rec->ircnet, rec->port);
+ add_listens = g_slist_remove(add_listens, rec);
g_free(rec);
- add_listens = g_slist_remove(add_listens, add_listens->data);
}
g_strfreev(ports);