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;