From ce73fc19dbc36d089e595e452356deccd8afcd6f Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Fri, 6 Jul 2012 16:57:17 +0200 Subject: Add a return value to crypter_t.set_key() --- src/libstrongswan/plugins/gcm/gcm_aead.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstrongswan/plugins/gcm/gcm_aead.c') diff --git a/src/libstrongswan/plugins/gcm/gcm_aead.c b/src/libstrongswan/plugins/gcm/gcm_aead.c index 985e759a9..79ee65d98 100644 --- a/src/libstrongswan/plugins/gcm/gcm_aead.c +++ b/src/libstrongswan/plugins/gcm/gcm_aead.c @@ -348,8 +348,8 @@ METHOD(aead_t, set_key, bool, { memcpy(this->salt, key.ptr + key.len - SALT_SIZE, SALT_SIZE); key.len -= SALT_SIZE; - this->crypter->set_key(this->crypter, key); - return create_h(this, this->h); + return this->crypter->set_key(this->crypter, key) && + create_h(this, this->h); } METHOD(aead_t, destroy, void, -- cgit v1.2.3