diff --git a/src/ssl.c b/src/ssl.c index ddb155f12..8f9ec10a3 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -55956,7 +55956,7 @@ static int GetStaticEphemeralKey(WOLFSSL_CTX* ctx, WOLFSSL* ssl, if (keySz) *keySz = 0; #ifndef SINGLE_THREADED - if (ctx->staticKELockInit && + if (ctx->staticKELockInit && (ret = wc_LockMutex(&ctx->staticKELock)) != 0) { return ret; } diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 6b7e18d86..1690b730f 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -13679,7 +13679,7 @@ static int MatchBaseName(int type, const char* name, int nameSz, if (base == NULL || baseSz <= 0 || name == NULL || nameSz <= 0 || name[0] == '.' || nameSz < baseSz || (type != ASN_RFC822_TYPE && type != ASN_DNS_TYPE && - type != ASN_DIR_TYPE)) { + type != ASN_DIR_TYPE)) { return 0; }