mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 12:50:51 +02:00
remove unnecessary check, idx will be 1 and derSz is at least 5
This commit is contained in:
@@ -268,9 +268,6 @@ static WC_INLINE int test_pkcs8_get_version_byte(const byte* der, word32 derSz)
|
||||
if (der[idx++] != 0x30) {
|
||||
return -1;
|
||||
}
|
||||
if (idx >= derSz) {
|
||||
return -1;
|
||||
}
|
||||
if ((der[idx] & 0x80) == 0) {
|
||||
/* short-form length */
|
||||
idx += 1;
|
||||
|
||||
Reference in New Issue
Block a user