wincng.c: fix possible use of uninitialized memory
Fixes VS2012 code analysis warning C6001: using uninitialized memory 'cbDecoded'. libssh2 wincng.c 553
This commit is contained in:
parent
e57f29f8f6
commit
06ff22f1a6
@ -546,8 +546,8 @@ _libssh2_wincng_asn_decode(unsigned char *pbEncoded,
|
|||||||
unsigned char **ppbDecoded,
|
unsigned char **ppbDecoded,
|
||||||
unsigned long *pcbDecoded)
|
unsigned long *pcbDecoded)
|
||||||
{
|
{
|
||||||
unsigned char *pbDecoded;
|
unsigned char *pbDecoded = NULL;
|
||||||
unsigned long cbDecoded;
|
unsigned long cbDecoded = 0;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = CryptDecodeObjectEx(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
|
ret = CryptDecodeObjectEx(X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user