aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/network/receiver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcharon/network/receiver.c b/src/libcharon/network/receiver.c
index 8240c2a9b..3a52f8dc3 100644
--- a/src/libcharon/network/receiver.c
+++ b/src/libcharon/network/receiver.c
@@ -453,8 +453,7 @@ static job_requeue_t receive_packets(private_receiver_t *this)
{
if (memeq(data.ptr, marker.ptr, marker.len))
{ /* remove Non-ESP marker */
- data = chunk_skip(data, marker.len);
- packet->set_data(packet, chunk_clone(data));
+ packet->skip_bytes(packet, marker.len);
}
else
{ /* this seems to be an ESP packet */