strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73470cf
)
Avoid unnecessary copy of packet data when removing Non-ESP marker.
author
Tobias Brunner
<tobias@strongswan.org>
Fri, 24 Feb 2012 10:44:05 +0000
(11:44 +0100)
committer
Tobias Brunner
<tobias@strongswan.org>
Wed, 8 Aug 2012 13:12:25 +0000
(15:12 +0200)
src/libcharon/network/receiver.c
patch
|
blob
|
history
diff --git
a/src/libcharon/network/receiver.c
b/src/libcharon/network/receiver.c
index
8240c2a
..
3a52f8d
100644
(file)
--- 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 */