[glib-networking/glib-2-60] openssl: fix some uninitialized memory use
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/glib-2-60] openssl: fix some uninitialized memory use
- Date: Tue, 21 May 2019 16:08:26 +0000 (UTC)
commit b2107f8ab22d53c47bbb26c19a5e97f23335186a
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sat May 4 00:58:54 2019 +0000
openssl: fix some uninitialized memory use
g_tls_database_openssl_initable_init() is returning uninitialized memory
on its success path. For me, result is usually 0, causing the call to
fail. But for Ignacio, it's nonzero, causing the call to succeed.
(cherry picked from commit ab9a3761c8d5e0cc21bc89e8cfadc07f0b0a4df3)
tls/openssl/gtlsdatabase-openssl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tls/openssl/gtlsdatabase-openssl.c b/tls/openssl/gtlsdatabase-openssl.c
index 6b161e3..4966459 100644
--- a/tls/openssl/gtlsdatabase-openssl.c
+++ b/tls/openssl/gtlsdatabase-openssl.c
@@ -212,7 +212,7 @@ g_tls_database_openssl_initable_init (GInitable *initable,
GTlsDatabaseOpenssl *self = G_TLS_DATABASE_OPENSSL (initable);
GTlsDatabaseOpensslPrivate *priv;
X509_STORE *store;
- gboolean result;
+ gboolean result = TRUE;
priv = g_tls_database_openssl_get_instance_private (self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]