don't allocate n twice, indent
authorLove Hornquist Astrand <lha@h5l.org>
Wed, 29 Sep 2010 05:08:00 +0000 (22:08 -0700)
committerLove Hornquist Astrand <lha@h5l.org>
Wed, 29 Sep 2010 05:08:00 +0000 (22:08 -0700)
lib/hcrypto/rsa-ltm.c

index ad3686e403ce00e530b6d6b2634d9ff5bdd99ccb..03997b55ef4b297cff9bda0f33fd7cd7c2ce78d2 100644 (file)
@@ -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);
 
@@ -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;
 }