diff --git a/library/sha3.c b/library/sha3.c index dca579048..4c1a1a9d4 100644 --- a/library/sha3.c +++ b/library/sha3.c @@ -200,7 +200,7 @@ int mbedtls_sha3_starts(mbedtls_sha3_context *ctx, mbedtls_sha3_id id) } } - if (p == NULL || p->id == MBEDTLS_SHA3_NONE) { + if (p->id == MBEDTLS_SHA3_NONE) { return MBEDTLS_ERR_SHA3_BAD_INPUT_DATA; }