libipsec: Properly initialize variables when creating AEAD wrapper

This commit is contained in:
Tobias Brunner 2013-09-04 16:17:17 +02:00
parent c742905f50
commit a4b996c0bc
1 changed files with 2 additions and 2 deletions

View 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, static bool create_traditional(private_esp_context_t *this, int enc_alg,
chunk_t enc_key, int int_alg, chunk_t int_key) chunk_t enc_key, int int_alg, chunk_t int_key)
{ {
crypter_t *crypter; crypter_t *crypter = NULL;
signer_t *signer; signer_t *signer = NULL;
crypter = lib->crypto->create_crypter(lib->crypto, enc_alg, enc_key.len); crypter = lib->crypto->create_crypter(lib->crypto, enc_alg, enc_key.len);
if (!crypter) if (!crypter)