reverse order of arguments to mp_clear_multi()

This commit is contained in:
Steffen Jaeckel 2018-12-25 14:04:02 +01:00
parent 09133c9349
commit a79a7eda65
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ int mp_prime_frobenius_underwood(const mp_int *N, int *result)
}
LBL_FU_ERR:
mp_clear_multi(&T1z,&T2z,&Np1z,&sz,&tz, NULL);
mp_clear_multi(&tz,&sz,&Np1z,&T2z,&T1z, NULL);
return e;
}

View File

@ -401,7 +401,7 @@ int mp_prime_strong_lucas_selfridge(const mp_int *a, int *result)
}
}
LBL_LS_ERR:
mp_clear_multi(&Dz, &gcd, &Np1, &Uz, &Vz, &U2mz, &V2mz, &Qmz, &Q2mz, &Qkdz, &T1z, &T2z, &T3z, &T4z, &Q2kdz, NULL);
mp_clear_multi(&Q2kdz, &T4z, &T3z, &T2z, &T1z, &Qkdz, &Q2mz, &Qmz, &V2mz, &U2mz, &Vz, &Uz, &Np1, &gcd, &Dz, NULL);
return e;
}
#endif