aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/packet.c
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-07 08:34:40 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-07 08:34:40 +0000
commitfd9cabd4e68d85877a442ae2fff53c87e687f42b (patch)
tree4dd4a7e32780f84696466a7ed9da0ddaf9911a1b /Source/charon/packet.c
parent8ccd0b01f9fc95eb75d92c4d6b5aad0c4baf3e88 (diff)
downloadstrongswan-fd9cabd4e68d85877a442ae2fff53c87e687f42b.tar.bz2
strongswan-fd9cabd4e68d85877a442ae2fff53c87e687f42b.tar.xz
- tests are now performed in its own main tests.c
-
Diffstat (limited to 'Source/charon/packet.c')
-rw-r--r--Source/charon/packet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/charon/packet.c b/Source/charon/packet.c
index ac559ffb4..a34a16919 100644
--- a/Source/charon/packet.c
+++ b/Source/charon/packet.c
@@ -25,7 +25,7 @@
-status_t destroy(packet_t *this)
+static status_t destroy(packet_t *this)
{
pfree(this->data.ptr);
pfree(this);
@@ -37,6 +37,8 @@ packet_t *packet_create()
{
packet_t *this = alloc_thing(packet_t, "packet_t");
+ this->destroy = destroy;
+
this->data.len = 0;
this->data.ptr = NULL;
return this;