summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2013-04-29 16:56:46 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2013-04-29 16:59:43 +0100
commitaf34b5de9f32289a73af3e90d68f776d7166f7dd (patch)
tree9e660ad7a51fc99e677f71590ffc4e627b9b6bc4
parent8be8aa0d8d9b76173de796e6e32ce8eb9d5605fa (diff)
TLSManager: treat unhandled channels as rejected.
This was incorrectly adapted from the Gabble code.
-rw-r--r--src/server-tls-manager.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server-tls-manager.c b/src/server-tls-manager.c
index 5073c82..b14cecd 100644
--- a/src/server-tls-manager.c
+++ b/src/server-tls-manager.c
@@ -164,6 +164,12 @@ server_tls_channel_closed_cb (IdleServerTLSChannel *channel,
if (channel == self->priv->channel)
{
+ IDLE_DEBUG ("Channel closed before being handled. Failing verification");
+
+ g_simple_async_result_set_error (self->priv->async_result,
+ IDLE_SERVER_TLS_ERROR, 0, "TLS verification channel closed");
+
+ self->priv->channel = NULL;
complete_verify (self);
}
else