summaryrefslogtreecommitdiff
path: root/thirdparty/mbedtls/library/pkparse.c
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-12-18 21:22:37 +0100
committerRémi Verschelde <rverschelde@gmail.com>2020-12-18 21:43:21 +0100
commit2872006039f77748479a2feeb3a8dcf5a0bc9d90 (patch)
treeef5d082b00fd6c27d608aec0ac2989d6a1da612f /thirdparty/mbedtls/library/pkparse.c
parent7ad29ed64e850fd43ba7ceb1cfaab4e015ef7b97 (diff)
mbedtls: Update to upstream version 2.16.9
Diffstat (limited to 'thirdparty/mbedtls/library/pkparse.c')
-rw-r--r--thirdparty/mbedtls/library/pkparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/mbedtls/library/pkparse.c b/thirdparty/mbedtls/library/pkparse.c
index 086807d836..e410f3aae1 100644
--- a/thirdparty/mbedtls/library/pkparse.c
+++ b/thirdparty/mbedtls/library/pkparse.c
@@ -692,7 +692,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 )