We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 665469f + 98789dc commit ebbeb6cCopy full SHA for ebbeb6c
1 file changed
src/tls.c
@@ -8396,7 +8396,7 @@ static int TLSX_KeyShare_ProcessPqc(WOLFSSL* ssl, KeyShareEntry* keyShareEntry)
8396
ret = kyber_id2type(oqs_group, &type);
8397
if (ret != 0) {
8398
WOLFSSL_MSG("Invalid OQS algorithm specified.");
8399
- ret = BAD_FUNC_ARG;
+ return BAD_FUNC_ARG;
8400
}
8401
if (ret == 0) {
8402
ret = wc_KyberKey_Init(type, kem, ssl->heap, INVALID_DEVID);
@@ -8887,7 +8887,7 @@ static int server_generate_pqc_ciphertext(WOLFSSL* ssl,
8887
8888
8889
WOLFSSL_MSG("Invalid Kyber algorithm specified.");
8890
8891
8892
8893
0 commit comments