Skip to content

Commit

Permalink
Merge pull request #3705 from ctron/feature/fix_return_code_1
Browse files Browse the repository at this point in the history
Fix return code expression in pkparse
  • Loading branch information
gilles-peskine-arm committed Sep 22, 2020
2 parents 5cb54f7 + 9ad4a33 commit 9b33eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/pkparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ int mbedtls_pk_parse_subpubkey( unsigned char **p, const unsigned char *end,
ret = MBEDTLS_ERR_PK_UNKNOWN_PK_ALG;

if( ret == 0 && *p != end )
ret = MBEDTLS_ERR_PK_INVALID_PUBKEY
ret = MBEDTLS_ERR_PK_INVALID_PUBKEY +
MBEDTLS_ERR_ASN1_LENGTH_MISMATCH;

if( ret != 0 )
Expand Down

0 comments on commit 9b33eb3

Please sign in to comment.