Skip to content

Commit

Permalink
don't allocate n twice, indent
Browse files Browse the repository at this point in the history
  • Loading branch information
Love Hornquist Astrand committed Sep 29, 2010
1 parent 76266ab commit 97d939d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/hcrypto/rsa-ltm.c
Expand Up @@ -518,7 +518,9 @@ ltm_rsa_generate_key(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb)

ret = -1;

mp_init_multi(&el, &p, &q, &n, &n, &d, &dmp1, &dmq1, &iqmp, &t1, &t2, &t3, NULL);
mp_init_multi(&el, &p, &q, &n, &d,
&dmp1, &dmq1, &iqmp,
&t1, &t2, &t3, NULL);

BN2mpz(&el, e);

Expand Down Expand Up @@ -588,8 +590,9 @@ ltm_rsa_generate_key(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb)
ret = 1;

out:
mp_clear_multi(&el, &p, &q, &n, &d, &dmp1,
&dmq1, &iqmp, &t1, &t2, &t3, NULL);
mp_clear_multi(&el, &p, &q, &n, &d,
&dmp1, &dmq1, &iqmp,
&t1, &t2, &t3, NULL);

return ret;
}
Expand Down

0 comments on commit 97d939d

Please sign in to comment.