From: Martin Willi Date: Thu, 20 Jun 2013 14:15:31 +0000 (+0200) Subject: ikev1: Delete quick modes with the negotiated SA protocol X-Git-Tag: 5.1.1rc1~48^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4bf92306eb789152f59b172d56fd699252579911;p=thirdparty%2Fstrongswan.git ikev1: Delete quick modes with the negotiated SA protocol --- diff --git a/src/libcharon/sa/ikev1/tasks/quick_delete.c b/src/libcharon/sa/ikev1/tasks/quick_delete.c index 1a2cdb777d..605c10cea8 100644 --- a/src/libcharon/sa/ikev1/tasks/quick_delete.c +++ b/src/libcharon/sa/ikev1/tasks/quick_delete.c @@ -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);