mirror of
https://github.com/libssh2/libssh2.git
synced 2025-08-10 06:23:02 +03:00
wincng: Fixed use of possible uninitialized variable pPaddingInfo
Reported by Bob Kast, thanks a lot.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user