Use IPSEC DOI also for ISAKMP SA deletes.

This commit is contained in:
Tobias Brunner
2012-03-20 17:31:29 +01:00
parent d9c1dae293
commit fd5d6bb08e
@@ -357,6 +357,7 @@ delete_payload_t *delete_payload_create(payload_type_t type,
}, },
.next_payload = NO_PAYLOAD, .next_payload = NO_PAYLOAD,
.protocol_id = protocol_id, .protocol_id = protocol_id,
.doi = IKEV1_DOI_IPSEC,
.type = type, .type = type,
); );
this->payload_length = get_header_length(this); this->payload_length = get_header_length(this);
@@ -370,7 +371,6 @@ delete_payload_t *delete_payload_create(payload_type_t type,
} }
else else
{ {
this->doi = IKEV1_DOI_IPSEC,
this->spi_size = 4; this->spi_size = 4;
} }
return &this->public; return &this->public;