diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 738fea3b8..bacd6486a 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -2574,7 +2574,7 @@ int wc_ecc_export_point_der(const int curve_idx, ecc_point* point, byte* out, wo return LENGTH_ONLY_E; } - if (point == NULL && out == NULL && outLen == NULL) + if (point == NULL || out == NULL || outLen == NULL) return ECC_BAD_ARG_E; numlen = ecc_sets[curve_idx].size;