diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-03-21 16:44:17 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-03-21 16:53:09 +0100 |
commit | 5f6f9e8b590008c476a66eb5ff3377446b1caad6 (patch) | |
tree | 34ce1b3c08bd446fae0c6d51739c07965af30da2 | |
parent | f9251a5c86f86388bb9aaa078738fcf49870ca3f (diff) |
gtls: avoid uninitialized variable.
Coverity CID 1291166 pointed out that we could read this variable
uninitialized.
-rw-r--r-- | lib/vtls/gtls.c | 2 |
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? */ |