[glib-networking/mcatanzaro/#54] openssl: fix some uninitialized memory use
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/mcatanzaro/#54] openssl: fix some uninitialized memory use
- Date: Sat, 4 May 2019 01:02:03 +0000 (UTC)
commit 9536f8b4903127bbea97b08cd636e2689ed2e788
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]