]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
ikev1: Delete quick modes with the negotiated SA protocol
authorMartin Willi <martin@revosec.ch>
Thu, 20 Jun 2013 14:15:31 +0000 (16:15 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 11 Oct 2013 08:15:21 +0000 (10:15 +0200)
src/libcharon/sa/ikev1/tasks/quick_delete.c

index 1a2cdb777d7b4c733fd29b8cc0ef0b6ba2df8f9e..605c10cea88aad50fe14a92802aeb6511c73d3fe 100644 (file)
@@ -177,7 +177,7 @@ METHOD(task_t, build_i, status_t,
                DBG1(DBG_IKE, "sending DELETE for %N CHILD_SA with SPI %.8x",
                         protocol_id_names, this->protocol, ntohl(this->spi));
 
-               delete_payload = delete_payload_create(DELETE_V1, PROTO_ESP);
+               delete_payload = delete_payload_create(DELETE_V1, this->protocol);
                delete_payload->add_spi(delete_payload, this->spi);
                message->add_payload(message, &delete_payload->payload_interface);