aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2014-07-12 01:31:12 +0200
committerDan Fandrich <dan@coneharvesters.com>2014-07-12 01:31:12 +0200
commitefc71583e7b6abb8e3b9bf37b003c6115c39f9d6 (patch)
treedc6489333c8790e9eea20e201e0385b53717d39d /lib
parent3d2e1724cb4f2a38dfff493beac2f365c4d556f9 (diff)
gnutls: fixed a couple of uninitialized variable references
Diffstat (limited to 'lib')
-rw-r--r--lib/vtls/gtls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c
index ec582e096..a2934838c 100644
--- a/lib/vtls/gtls.c
+++ b/lib/vtls/gtls.c
@@ -660,7 +660,7 @@ gtls_connect_step3(struct connectdata *conn,
unsigned int verify_status;
gnutls_x509_crt_t x509_cert,x509_issuer;
gnutls_datum_t issuerp;
- char certbuf[256]; /* big enough? */
+ char certbuf[256] = ""; /* big enough? */
size_t size;
unsigned int algo;
unsigned int bits;
@@ -922,7 +922,7 @@ gtls_connect_step3(struct connectdata *conn,
might've been rejected and then a new one is in use now and we need to
detect that. */
void *connect_sessionid;
- size_t connect_idsize;
+ size_t connect_idsize = 0;
/* get the session ID data size */
gnutls_session_get_data(session, NULL, &connect_idsize);