fix null deference potential on new API

This commit is contained in:
toddouska
2015-07-01 12:51:19 -07:00
parent 1d663d3bff
commit e164173562

View File

@@ -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;