Fix a logic

This commit is contained in:
Koji Takeda
2025-04-12 13:12:36 +09:00
parent 770b6cb9e7
commit 29482a3e4d

View File

@ -1021,6 +1021,7 @@ static int ProcessBufferTryDecodeDilithium(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
else if (*keyFormat == 0) {
WOLFSSL_MSG("Not a Dilithium key");
/* Unknown format wasn't dilithium, so keep trying other formats. */
ret = 0;
}
/* Free dynamically allocated data in key. */