diff --git a/wolfcrypt/src/wc_port.c b/wolfcrypt/src/wc_port.c index a5b864a95ad..524745e14e7 100644 --- a/wolfcrypt/src/wc_port.c +++ b/wolfcrypt/src/wc_port.c @@ -3974,7 +3974,7 @@ char* mystrnstr(const char* s1, const char* s2, unsigned int n) */ if (dispatch_semaphore_signal(s->sem) < 0) { dispatch_release(s->sem); - return return MEMORY_E; + return MEMORY_E; } #elif defined(__OS2__) DosCreateMutexSem( NULL, &cond->mutex, 0, FALSE ); diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index 1003827123e..ef4274db3a1 100644 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -2084,7 +2084,7 @@ enum Max_ASN { #ifndef WC_MAX_DIGEST_SIZE #define WC_MAX_DIGEST_SIZE 64 #endif -#ifndef WC_MAX_DIGEST_SIZE +#ifndef WC_MAX_BLOCK_SIZE #define WC_MAX_BLOCK_SIZE 128 #endif