vtls: fix potentially uninitialized local variable warnings
Follow-up from a4a5e438ae
Closes #11310
This commit is contained in:
parent
c92b7228c5
commit
bc1e405ede
@ -893,8 +893,8 @@ CURLcode Curl_pin_peer_pubkey(struct Curl_easy *data,
|
||||
/* only do this if pinnedpubkey starts with "sha256//", length 8 */
|
||||
if(strncmp(pinnedpubkey, "sha256//", 8) == 0) {
|
||||
CURLcode encode;
|
||||
size_t encodedlen, pinkeylen;
|
||||
char *encoded, *pinkeycopy, *begin_pos, *end_pos;
|
||||
size_t encodedlen = 0, pinkeylen;
|
||||
char *encoded = NULL, *pinkeycopy, *begin_pos, *end_pos;
|
||||
unsigned char *sha256sumdigest;
|
||||
|
||||
if(!Curl_ssl->sha256sum) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user