- allready partly working

This commit is contained in:
Jan Hutter
2005-11-21 17:50:56 +00:00
parent 8323a9c120
commit 55f90b5d51
8 changed files with 111 additions and 46 deletions
+2 -10
View File
@@ -458,12 +458,6 @@ static status_t generate(private_message_t *this, packet_t **packet)
this->logger->log(this->logger, CONTROL, "generating message, contains %d payloads",
this->payloads->get_count(this->payloads));
if (this->packet != NULL)
{
/* already generated packet is just cloned */
this->packet->clone(this->packet, packet);
}
if (this->exchange_type == EXCHANGE_TYPE_UNDEFINED)
{
this->logger->log(this->logger, ERROR, "exchange type is not defined");
@@ -754,10 +748,8 @@ static status_t destroy (private_message_t *this)
{
linked_list_iterator_t *iterator;
if (this->packet != NULL)
{
this->packet->destroy(this->packet);
}
this->packet->destroy(this->packet);
if (this->ike_sa_id != NULL)
{
this->ike_sa_id->destroy(this->ike_sa_id);