Skip to content

Commit 29482a3

Browse files
committed
Fix a logic
1 parent 770b6cb commit 29482a3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ssl_load.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,7 @@ static int ProcessBufferTryDecodeDilithium(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
10211021
else if (*keyFormat == 0) {
10221022
WOLFSSL_MSG("Not a Dilithium key");
10231023
/* Unknown format wasn't dilithium, so keep trying other formats. */
1024+
ret = 0;
10241025
}
10251026

10261027
/* Free dynamically allocated data in key. */

0 commit comments

Comments
 (0)