libipsec: Properly initialize variables when creating AEAD wrapper
authorTobias Brunner <tobias@strongswan.org>
Wed, 4 Sep 2013 14:17:17 +0000 (16:17 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 4 Sep 2013 14:18:29 +0000 (16:18 +0200)
src/libipsec/esp_context.c

index 481b793..66e14f9 100644 (file)
@@ -241,8 +241,8 @@ static bool create_aead(private_esp_context_t *this, int alg,
 static bool create_traditional(private_esp_context_t *this, int enc_alg,
                                                           chunk_t enc_key, int int_alg, chunk_t int_key)
 {
-       crypter_t *crypter;
-       signer_t *signer;
+       crypter_t *crypter = NULL;
+       signer_t *signer = NULL;
 
        crypter = lib->crypto->create_crypter(lib->crypto, enc_alg, enc_key.len);
        if (!crypter)