From a4b996c0bc8e6e8466b750fea186bab7741a6483 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 4 Sep 2013 16:17:17 +0200 Subject: [PATCH] libipsec: Properly initialize variables when creating AEAD wrapper --- src/libipsec/esp_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libipsec/esp_context.c b/src/libipsec/esp_context.c index 481b793e6..66e14f98b 100644 --- a/src/libipsec/esp_context.c +++ b/src/libipsec/esp_context.c @@ -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)