libipsec: Properly initialize variables when creating AEAD wrapper
This commit is contained in:
parent
c742905f50
commit
a4b996c0bc
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue