all arguments must be read
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 20 Sep 2009 19:56:22 +0000 (21:56 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 20 Sep 2009 19:56:22 +0000 (21:56 +0200)
src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.c

index 660ef83..afa6092 100644 (file)
@@ -509,7 +509,7 @@ gcrypt_rsa_private_key_t *gcrypt_rsa_private_key_load(key_type_t type,
                                                                                                          va_list args)
 {
        private_gcrypt_rsa_private_key_t *this;
-       chunk_t n, e, d, p, q, u;
+       chunk_t n, e, d, p, q, exp, u;
        gcry_error_t err;
 
        n = e = d = p = q = u = chunk_empty;
@@ -536,6 +536,7 @@ gcrypt_rsa_private_key_t *gcrypt_rsa_private_key_load(key_type_t type,
                        case BUILD_RSA_EXP1:
                        case BUILD_RSA_EXP2:
                                /* not required for gcrypt */
+                               exp = va_arg(args, chunk_t);
                                continue;
                        case BUILD_RSA_COEFF:
                                u = va_arg(args, chunk_t);