diff options
author | Raymond Mao <raymond.mao@linaro.org> | 2024-10-16 16:48:26 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-10-18 14:18:12 -0600 |
commit | 7f453771528160f0401a8cb7cd871c32e56f63f2 (patch) | |
tree | 5fe3ed54d0b7b869b6ec4ec5c887f562053f093d /lib/mbedtls/x509_cert_parser.c | |
parent | b92a18e2b61ac3de27c24a4c1ed8e01920d7ae4e (diff) |
mbedtls: fix defects in coverity scan
Fixes of unreleased buffer, deadcode and wrong variable type detected
by coverity scan.
Addresses-Coverity-ID: 510809: Resource leaks (RESOURCE_LEAK)
Addresses-Coverity-ID: 510806: Control flow issues (DEADCODE)
Addresses-Coverity-ID: 510794 Control flow issues (NO_EFFECT)
Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Diffstat (limited to 'lib/mbedtls/x509_cert_parser.c')
-rw-r--r-- | lib/mbedtls/x509_cert_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mbedtls/x509_cert_parser.c b/lib/mbedtls/x509_cert_parser.c index cb42018695c..e163e16b9bc 100644 --- a/lib/mbedtls/x509_cert_parser.c +++ b/lib/mbedtls/x509_cert_parser.c @@ -66,7 +66,7 @@ time64_t x509_get_timestamp(const mbedtls_x509_time *x509_time) static char *x509_populate_dn_name_string(const mbedtls_x509_name *name) { size_t len = 256; - size_t wb; + int wb; char *name_str; do { |