[Telepathy-commits] [telepathy-idle/master] Fix an infinite loop in the SslServerConnection class
Jonathon Jongsma
jonathon.jongsma at collabora.co.uk
Fri Feb 13 15:35:10 PST 2009
This failure was triggered by the connect-fail-ssl test. When a ssl connection
fails, it just retries the exact same address over an over in an infinite loop.
It doesn't move on to the next address as it should.
---
src/idle-ssl-server-connection.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/idle-ssl-server-connection.c b/src/idle-ssl-server-connection.c
index 046ece2..62d06b9 100644
--- a/src/idle-ssl-server-connection.c
+++ b/src/idle-ssl-server-connection.c
@@ -446,6 +446,8 @@ static gboolean ssl_connect_io_func(GIOChannel *src, GIOCondition cond, gpointer
close(data->fd);
data->fd = 0;
+ /* try the next address */
+ data->cur = data->cur->ai_next;
ssl_do_connect(data);
}
--
1.5.6.5
More information about the telepathy-commits
mailing list