[glib-networking/wip/openssl] Do not leak the peer certificate
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/wip/openssl] Do not leak the peer certificate
- Date: Sun, 22 May 2016 20:12:31 +0000 (UTC)
commit e8e7404bfffc345fd0daf0a7c2fa8b28e735c3c5
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun May 22 22:11:49 2016 +0200
Do not leak the peer certificate
tls/openssl/gtlsconnection-openssl.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tls/openssl/gtlsconnection-openssl.c b/tls/openssl/gtlsconnection-openssl.c
index 155e218..7c97fc9 100644
--- a/tls/openssl/gtlsconnection-openssl.c
+++ b/tls/openssl/gtlsconnection-openssl.c
@@ -353,6 +353,7 @@ g_tls_connection_openssl_complete_handshake (GTlsConnectionBase *tls,
g_tls_connection_base_set_peer_certificate (G_TLS_CONNECTION_BASE (openssl),
peer_certificate,
peer_certificate_errors);
+ g_clear_object (&peer_certificate);
}
return status;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]