Use mp_iszero

pull/4801/head
Tesfa Mael 2022-01-26 17:33:42 -08:00
parent 1c1bd413e0
commit a37e17084d
1 changed files with 1 additions and 2 deletions

View File

@ -4599,8 +4599,7 @@ int wc_ecc_point_is_at_infinity(ecc_point* p)
{ {
if (p == NULL) if (p == NULL)
return BAD_FUNC_ARG; return BAD_FUNC_ARG;
if (mp_iszero(p->x) && mp_iszero(p->y))
if ((p->x->used == 0) && (p->y->used == 0))
return 1; return 1;
return 0; return 0;