wincng: Fixed use of possible uninitialized variable pPaddingInfo
Reported by Bob Kast, thanks a lot.
This commit is contained in:
parent
2c46c4bf95
commit
aba11380a1
@ -446,7 +446,8 @@ _libssh2_wincng_key_sha1_verify(_libssh2_wincng_key_ctx *ctx,
|
||||
if (flags & BCRYPT_PAD_PKCS1) {
|
||||
paddingInfoPKCS1.pszAlgId = BCRYPT_SHA1_ALGORITHM;
|
||||
pPaddingInfo = &paddingInfoPKCS1;
|
||||
}
|
||||
} else
|
||||
pPaddingInfo = NULL;
|
||||
|
||||
memcpy(data, sig, datalen);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user