From 882ac884967628d41fe95daf17ab521b898138ce Mon Sep 17 00:00:00 2001 From: pennam Date: Mon, 31 Mar 2025 09:35:44 +0200 Subject: [PATCH] setECTrustAnchorBearSSL: fix param length --- src/utility/server_drv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utility/server_drv.cpp b/src/utility/server_drv.cpp index 0d41093..53dd6c0 100644 --- a/src/utility/server_drv.cpp +++ b/src/utility/server_drv.cpp @@ -549,11 +549,11 @@ uint8_t ServerDrv::setECTrustAnchorBearSSL(const uint8_t *dName, uint32_t dNameS /* Send flags */ SpiDrv::sendParam(flags); - commandSize += 2; + commandSize += 3; /* Send curve */ SpiDrv::sendParam(curve); - commandSize += 2; + commandSize += 3; /* Send key */ SpiDrv::sendBuffer((uint8_t*)key, keySize, LAST_PARAM);