From 428940879f5fd1d5a3bdd658260ee45a9f7aca90 Mon Sep 17 00:00:00 2001 From: Andrey Tolstoy Date: Tue, 23 Jun 2020 16:02:15 +0700 Subject: [PATCH] [photon] crypto: fix typo in x509_parse_certificate_data_impl() --- hal/src/photon/crypto_compat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal/src/photon/crypto_compat.cpp b/hal/src/photon/crypto_compat.cpp index 6485eaaef4..18b0a8807e 100644 --- a/hal/src/photon/crypto_compat.cpp +++ b/hal/src/photon/crypto_compat.cpp @@ -719,7 +719,7 @@ static int32_t x509_parse_certificate_data_impl(x509_cert* crt, const unsigned c } ret = x509_crt_parse_der_core(cc, p + total_len, len - total_len); if (ret == 0) { - total_len += c->raw.len; + total_len += cc->raw.len; } else { if (prev) { prev->next = NULL;