From de9b4be619338325efca64b8224b52e168907330 Mon Sep 17 00:00:00 2001 From: Mark Atwood Date: Thu, 9 Jul 2026 16:30:15 -0700 Subject: [PATCH] fix: reset ret after EccVerify pubkey export fail --- src/wh_server_crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wh_server_crypto.c b/src/wh_server_crypto.c index 5755676c3..ce0b2e55b 100644 --- a/src/wh_server_crypto.c +++ b/src/wh_server_crypto.c @@ -1556,6 +1556,7 @@ static int _HandleEccVerify(whServerContext* ctx, uint16_t magic, int devId, if (ret < 0) { /* Problem dumping the public key. Set to 0 length */ pub_size = 0; + ret = 0; } else { pub_size = ret;