[glib-networking] gnutls: fix an uninitialized variable
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] gnutls: fix an uninitialized variable
- Date: Fri, 7 Jan 2011 19:51:49 +0000 (UTC)
commit 18e968821ecc9f6f8c64aa9aa6538ac5b45bdcb0
Author: Dan Winship <danw gnome org>
Date: Fri Jan 7 14:42:01 2011 -0500
gnutls: fix an uninitialized variable
https://bugzilla.gnome.org/show_bug.cgi?id=637853
tls/gnutls/gtlscertificate-gnutls.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tls/gnutls/gtlscertificate-gnutls.c b/tls/gnutls/gtlscertificate-gnutls.c
index 68b6e2d..f4269a7 100644
--- a/tls/gnutls/gtlscertificate-gnutls.c
+++ b/tls/gnutls/gtlscertificate-gnutls.c
@@ -318,6 +318,8 @@ g_tls_certificate_gnutls_verify (GTlsCertificate *cert,
gtls_flags = g_tls_certificate_gnutls_convert_flags (gnutls_flags);
}
+ else
+ gtls_flags = 0;
/* We have to check these ourselves since gnutls_x509_crt_list_verify
* won't bother if it gets an UNKNOWN_CA.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]