mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 17:55:42 +01:00
fix return code
Signed-off-by: Jens Reimann <jreimann@redhat.com>
This commit is contained in:
parent
5cb54f7b27
commit
9ad4a33a54
@ -662,7 +662,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 New Issue
Block a user