[glib-networking/mcatanzaro/tls-thread] progress
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/mcatanzaro/tls-thread] progress
- Date: Sun, 29 Dec 2019 18:22:11 +0000 (UTC)
commit be2b6b6c31de3aca814baed34eb35f40a3e5b9f7
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Dec 29 12:21:53 2019 -0600
progress
tls/gnutls/gtlsoperationsthread-gnutls.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/tls/gnutls/gtlsoperationsthread-gnutls.c b/tls/gnutls/gtlsoperationsthread-gnutls.c
index d5f3749..b5cd329 100644
--- a/tls/gnutls/gtlsoperationsthread-gnutls.c
+++ b/tls/gnutls/gtlsoperationsthread-gnutls.c
@@ -642,7 +642,9 @@ g_tls_operations_thread_gnutls_handshake (GTlsOperationsThreadBase *base,
self->own_certificate = NULL;
self->handshake_context = NULL;
self->handshaking = FALSE;
- self->ever_handshaked = TRUE;
+
+ if (status == G_TLS_CONNECTION_BASE_OK)
+ self->ever_handshaked = TRUE;
if (gnutls_alpn_get_selected_protocol (self->session, &protocol) == 0 && protocol.size > 0)
*negotiated_protocol = g_strndup ((gchar *)protocol.data, protocol.size);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]