aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-03-21 16:44:17 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-03-21 16:53:09 +0100
commit5f6f9e8b590008c476a66eb5ff3377446b1caad6 (patch)
tree34ce1b3c08bd446fae0c6d51739c07965af30da2
parentf9251a5c86f86388bb9aaa078738fcf49870ca3f (diff)
gtls: avoid uninitialized variable.
Coverity CID 1291166 pointed out that we could read this variable uninitialized.
-rw-r--r--lib/vtls/gtls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c
index 53412a1a2..d6293e506 100644
--- a/lib/vtls/gtls.c
+++ b/lib/vtls/gtls.c
@@ -779,7 +779,7 @@ gtls_connect_step3(struct connectdata *conn,
{
unsigned int cert_list_size;
const gnutls_datum_t *chainp;
- unsigned int verify_status;
+ unsigned int verify_status = 0;
gnutls_x509_crt_t x509_cert, x509_issuer;
gnutls_datum_t issuerp;
char certbuf[256] = ""; /* big enough? */