aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/sa/ike_sa.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/sa/ike_sa.c')
-rw-r--r--Source/charon/sa/ike_sa.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/charon/sa/ike_sa.c b/Source/charon/sa/ike_sa.c
index cd2a666cb..2b1fe9421 100644
--- a/Source/charon/sa/ike_sa.c
+++ b/Source/charon/sa/ike_sa.c
@@ -303,14 +303,8 @@ static status_t build_message(private_ike_sa_t *this, exchange_type_t type, bool
new_message->set_message_id(new_message, (request) ? this->message_id_out : this->message_id_in);
- status = new_message->set_ike_sa_id(new_message, this->ike_sa_id);
- if (status != SUCCESS)
- {
- this->logger->log(this->logger, ERROR, "Fatal error: could not set ike_sa_id of message");
- new_message->destroy(new_message);
- return status;
- }
-
+ new_message->set_ike_sa_id(new_message, this->ike_sa_id);
+
*message = new_message;
return SUCCESS;