projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3d2e172
)
gnutls: fixed a couple of uninitialized variable references
author
Dan Fandrich
<dan@coneharvesters.com>
Fri, 11 Jul 2014 23:31:12 +0000
(
01:31
+0200)
committer
Dan Fandrich
<dan@coneharvesters.com>
Fri, 11 Jul 2014 23:31:12 +0000
(
01:31
+0200)
lib/vtls/gtls.c
patch
|
blob
|
history
diff --git
a/lib/vtls/gtls.c
b/lib/vtls/gtls.c
index
ec582e0
..
a293483
100644
(file)
--- 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;
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;
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;
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);
/* get the session ID data size */
gnutls_session_get_data(session, NULL, &connect_idsize);