Navigation Menu

Skip to content

Commit

Permalink
gnutls: fixed a couple of uninitialized variable references
Browse files Browse the repository at this point in the history
  • Loading branch information
dfandrich committed Jul 11, 2014
1 parent 3d2e172 commit efc7158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vtls/gtls.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit efc7158

Please sign in to comment.