Initialize g and p in create_dh factory method
authorTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 13:48:09 +0000 (15:48 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 13:48:09 +0000 (15:48 +0200)
src/libstrongswan/crypto/crypto_factory.c

index 58118d9..3736ae3 100644 (file)
@@ -360,7 +360,7 @@ METHOD(crypto_factory_t, create_dh, diffie_hellman_t*,
        enumerator_t *enumerator;
        entry_t *entry;
        va_list args;
-       chunk_t g, p;
+       chunk_t g = chunk_empty, p = chunk_empty;
        diffie_hellman_t *diffie_hellman = NULL;
 
        if (group == MODP_CUSTOM)