aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/packet.c
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-09 09:35:06 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-09 09:35:06 +0000
commit6c4b815f22341ad3c2574b42a64b39e16ef1e7c7 (patch)
tree57c322fecce2b837b34654758a0e394ffdfaa90e /Source/charon/packet.c
parent79538669625bbae26fcef5d791b2246242c5a407 (diff)
downloadstrongswan-6c4b815f22341ad3c2574b42a64b39e16ef1e7c7.tar.bz2
strongswan-6c4b815f22341ad3c2574b42a64b39e16ef1e7c7.tar.xz
- memory allocation now works with allocator-functions...
Diffstat (limited to 'Source/charon/packet.c')
-rw-r--r--Source/charon/packet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/charon/packet.c b/Source/charon/packet.c
index 22977bd48..94b58e5e1 100644
--- a/Source/charon/packet.c
+++ b/Source/charon/packet.c
@@ -20,6 +20,7 @@
* for more details.
*/
+#include "allocator.h"
#include "packet.h"
@@ -68,7 +69,7 @@ status_t set_source(packet_t *this, char *address, u_int16_t port)
packet_t *packet_create(int family)
{
- packet_t *this = allocator_alloc_thing(packet_t, "packet_t");
+ packet_t *this = allocator_alloc_thing(packet_t);
this->destroy = destroy;
this->set_destination = set_destination;