aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/sa/authenticator.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/sa/authenticator.c')
-rw-r--r--Source/charon/sa/authenticator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/charon/sa/authenticator.c b/Source/charon/sa/authenticator.c
index 20667f736..9c2a05cb3 100644
--- a/Source/charon/sa/authenticator.c
+++ b/Source/charon/sa/authenticator.c
@@ -353,7 +353,8 @@ static status_t compute_auth_data (private_authenticator_t *this,
allocator_free_chunk(&octets);
if (status != SUCCESS)
{
- return status;
+ private_key->destroy(private_key);
+ return status;
}
*auth_payload = auth_payload_create();