fixed AES-CCM/GCM authenticated encryption by eliminating generation of superfluous...
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 12 Nov 2008 04:02:10 +0000 (04:02 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 12 Nov 2008 04:02:10 +0000 (04:02 -0000)
src/charon/config/proposal.c

index 11143a4..7c07523 100644 (file)
@@ -212,6 +212,10 @@ static bool get_algorithm(private_proposal_t *this, transform_type_t type,
        enumerator_t *enumerator;
        bool found = FALSE;
        
+       if (key_size)
+       {
+               *key_size = 0; /* Just in case no algorithm is found */
+       }
        enumerator = create_enumerator(this, type);
        if (enumerator->enumerate(enumerator, alg, key_size))
        {