commit | 0efac53cdc9554eb532bc1b3644d940f6b4fb3ee | [log] [tgz] |
---|---|---|
author | Teppo Järvelin <teppo.jarvelin@arm.com> | Fri Oct 04 13:21:08 2019 +0300 |
committer | Teppo Järvelin <teppo.jarvelin@arm.com> | Fri Oct 04 13:21:08 2019 +0300 |
tree | bed960702cd419bfe355459689443ebb0b5aca33 | |
parent | 707ceb88f042570e655e906218b3dd1d944ed333 [diff] [blame] |
Review fixes: fixed comments to be more accurate and changed one memcmp to safer version
diff --git a/library/x509.c b/library/x509.c index a796760..1e61db8 100644 --- a/library/x509.c +++ b/library/x509.c
@@ -588,9 +588,8 @@ if( ret != 0 ) goto exit; - // use regular memcmp as oid is not that critical if( oid[0].len != oid[1].len || - memcmp( oid[0].p, oid[1].p, oid[1].len ) != 0 ) + mbedtls_platform_memcmp( oid[0].p, oid[1].p, oid[1].len ) != 0 ) { return( 1 ); }