Fix a logic

pull/8659/head
Koji Takeda 2025-04-12 13:12:36 +09:00
parent 770b6cb9e7
commit 29482a3e4d
1 changed files with 1 additions and 0 deletions

View File

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