fixed AES-CCM/GCM authenticated encryption by eliminating generation of superfluous...
[strongswan.git] / 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))
        {