summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathon Jongsma <jonathon.jongsma@collabora.co.uk>2009-01-19 15:45:47 -0600
committerJonathon Jongsma <jonathon.jongsma@collabora.co.uk>2009-01-19 15:45:47 -0600
commit40fa1847606e4176432e2177a55a87934450a16b (patch)
tree6638b9c03d16577ac01c64a6e9ff85f107a46bc2
parente798493ed8dc4e5d68035a3362da4e29884d9816 (diff)
Fix an infinite loop in the SslServerConnection class
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.
-rw-r--r--src/idle-ssl-server-connection.c2
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);
}