[glib-networking/mcatanzaro/#54: 4/4] openssl: fix some uninitialized memory use
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/mcatanzaro/#54: 4/4] openssl: fix some uninitialized memory use
- Date: Sun, 5 May 2019 13:44:48 +0000 (UTC)
commit ab9a3761c8d5e0cc21bc89e8cfadc07f0b0a4df3
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Fri May 3 19:58:54 2019 -0500
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.
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]