From 30d3117e8d6992759f1a0361ddb49ce4f903e818 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 5b557973d..f2110ce29 100644 --- a/src/wh_server_crypto.c +++ b/src/wh_server_crypto.c @@ -1592,6 +1592,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;