projects
/
platform
/
upstream
/
glib-networking.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dc8510f
)
gnutls: fix an uninitialized variable
author
Dan Winship
<danw@gnome.org>
Wed, 8 Dec 2010 15:39:03 +0000
(16:39 +0100)
committer
Dan Winship
<danw@gnome.org>
Wed, 8 Dec 2010 15:39:03 +0000
(16:39 +0100)
tls/gnutls/gtlsconnection-gnutls.c
patch
|
blob
|
history
diff --git
a/tls/gnutls/gtlsconnection-gnutls.c
b/tls/gnutls/gtlsconnection-gnutls.c
index
6239890
..
62010ff
100644
(file)
--- a/
tls/gnutls/gtlsconnection-gnutls.c
+++ b/
tls/gnutls/gtlsconnection-gnutls.c
@@
-786,8
+786,8
@@
handshake_internal (GTlsConnectionGnutls *gnutls,
GCancellable *cancellable,
GError **error)
{
GCancellable *cancellable,
GError **error)
{
- GTlsCertificate *peer_certificate;
- GTlsCertificateFlags peer_certificate_errors;
+ GTlsCertificate *peer_certificate
= NULL
;
+ GTlsCertificateFlags peer_certificate_errors
= 0
;
int ret;
if (G_IS_TLS_SERVER_CONNECTION_GNUTLS (gnutls) &&
int ret;
if (G_IS_TLS_SERVER_CONNECTION_GNUTLS (gnutls) &&
@@
-851,8
+851,6
@@
handshake_internal (GTlsConnectionGnutls *gnutls,
peer_certificate = chain;
}
peer_certificate = chain;
}
- else
- peer_certificate = NULL;
if (peer_certificate)
{
if (peer_certificate)
{