aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/encoding/message.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2005-11-28 20:29:47 +0000
committerMartin Willi <martin@strongswan.org>2005-11-28 20:29:47 +0000
commitd048df5cabd2d17713230f260bccebb205740498 (patch)
tree5c08427945e6a94421e84deada90aac2065fde18 /Source/charon/encoding/message.c
parent3fe058703ffe537dfdf68b9ad4d9143644230321 (diff)
downloadstrongswan-d048df5cabd2d17713230f260bccebb205740498.tar.bz2
strongswan-d048df5cabd2d17713230f260bccebb205740498.tar.xz
- return value cleanup
Diffstat (limited to 'Source/charon/encoding/message.c')
-rw-r--r--Source/charon/encoding/message.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/charon/encoding/message.c b/Source/charon/encoding/message.c
index 5f949dfa8..ad9e0758c 100644
--- a/Source/charon/encoding/message.c
+++ b/Source/charon/encoding/message.c
@@ -254,7 +254,7 @@ status_t get_supported_payloads (private_message_t *this, supported_payload_entr
*/
static void set_ike_sa_id (private_message_t *this,ike_sa_id_t *ike_sa_id)
{
- ike_sa_id->clone(ike_sa_id,&(this->ike_sa_id));
+ this->ike_sa_id = ike_sa_id->clone(ike_sa_id);
}
/**
@@ -266,7 +266,7 @@ static status_t get_ike_sa_id (private_message_t *this,ike_sa_id_t **ike_sa_id)
{
return FAILED;
}
- this->ike_sa_id->clone(this->ike_sa_id,ike_sa_id);
+ *ike_sa_id = this->ike_sa_id->clone(this->ike_sa_id);
return SUCCESS;
}
@@ -641,12 +641,7 @@ static status_t parse_body(private_message_t *this, crypter_t *crypter, signer_t
/* get next payload type */
current_payload_type = current_payload->get_next_type(current_payload);
- status = this->payloads->insert_last(this->payloads,current_payload);
- if (status != SUCCESS)
- {
- this->logger->log(this->logger, ERROR, "%s on adding payload", mapping_find(status_m, status));
- return status;;
- }
+ this->payloads->insert_last(this->payloads,current_payload);
}
return this->public.verify(&(this->public));