This regularises the exit path: now we always do these clears. This
makes the function easier to think about and easier to amend in the
way we're just about to.
There is no overall functional change since these variables are
initialised with mpz_init right at the top, even on the assume_valid
path.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
LDFATAL("file \"%s\" does not contain a "
"valid RSA key!\n",filename);
}
+
+assume_valid:
mpz_clear(&tmp);
mpz_clear(&tmp2);
mpz_clear(&tmp3);
mpz_clear(&d);
mpz_clear(&iqmp);
-assume_valid:
return st;
}