Use IPSEC DOI also for ISAKMP SA deletes.
authorTobias Brunner <tobias@strongswan.org>
Tue, 20 Dec 2011 17:49:49 +0000 (18:49 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 20 Mar 2012 16:31:29 +0000 (17:31 +0100)
src/libcharon/encoding/payloads/delete_payload.c

index dec1ba7..007411f 100644 (file)
@@ -357,6 +357,7 @@ delete_payload_t *delete_payload_create(payload_type_t type,
                },
                .next_payload = NO_PAYLOAD,
                .protocol_id = protocol_id,
+               .doi = IKEV1_DOI_IPSEC,
                .type = type,
        );
        this->payload_length = get_header_length(this);
@@ -370,7 +371,6 @@ delete_payload_t *delete_payload_create(payload_type_t type,
        }
        else
        {
-               this->doi = IKEV1_DOI_IPSEC,
                this->spi_size = 4;
        }
        return &this->public;