From e164173562e85dec6d528d4d62c55d807bdf7e84 Mon Sep 17 00:00:00 2001 From: toddouska Date: Wed, 1 Jul 2015 12:51:19 -0700 Subject: [PATCH] fix null deference potential on new API --- wolfcrypt/src/ecc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;