aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-08-25 17:03:09 +0200
committerMartin Willi <martin@revosec.ch>2010-08-25 17:04:25 +0200
commitdfde6570c79d9a8c90f097e914e237b9844e119a (patch)
tree91c28c74fbf749228782467f5eab66f38b6a17bc /src/libcharon
parent5299719569966cf6a4534f3245843de08b9aa49f (diff)
downloadstrongswan-dfde6570c79d9a8c90f097e914e237b9844e119a.tar.bz2
strongswan-dfde6570c79d9a8c90f097e914e237b9844e119a.tar.xz
Update delete_payload length when adding SPIs
Diffstat (limited to 'src/libcharon')
-rw-r--r--src/libcharon/encoding/payloads/delete_payload.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcharon/encoding/payloads/delete_payload.c b/src/libcharon/encoding/payloads/delete_payload.c
index 0abeb5523..5fc3b7c88 100644
--- a/src/libcharon/encoding/payloads/delete_payload.c
+++ b/src/libcharon/encoding/payloads/delete_payload.c
@@ -185,6 +185,7 @@ METHOD(delete_payload_t, add_spi, void,
case PROTO_AH:
case PROTO_ESP:
this->spi_count++;
+ this->payload_length += sizeof(spi);
this->spis = chunk_cat("mc", this->spis, chunk_from_thing(spi));
break;
default: