mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 04:15:35 +00:00
Merge pull request #3708 from ronald-cron-arm/feature/fix_return_code_1-2.16
Backport 2.16: Fix return code expression in pkparse
This commit is contained in:
commit
506498eaa3
|
@ -692,7 +692,7 @@ int mbedtls_pk_parse_subpubkey( unsigned char **p, const unsigned char *end,
|
||||||
ret = MBEDTLS_ERR_PK_UNKNOWN_PK_ALG;
|
ret = MBEDTLS_ERR_PK_UNKNOWN_PK_ALG;
|
||||||
|
|
||||||
if( ret == 0 && *p != end )
|
if( ret == 0 && *p != end )
|
||||||
ret = MBEDTLS_ERR_PK_INVALID_PUBKEY
|
ret = MBEDTLS_ERR_PK_INVALID_PUBKEY +
|
||||||
MBEDTLS_ERR_ASN1_LENGTH_MISMATCH;
|
MBEDTLS_ERR_ASN1_LENGTH_MISMATCH;
|
||||||
|
|
||||||
if( ret != 0 )
|
if( ret != 0 )
|
||||||
|
|
Loading…
Reference in a new issue