diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-11-07 08:34:40 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-11-07 08:34:40 +0000 |
commit | fd9cabd4e68d85877a442ae2fff53c87e687f42b (patch) | |
tree | 4dd4a7e32780f84696466a7ed9da0ddaf9911a1b /Source/charon/packet.c | |
parent | 8ccd0b01f9fc95eb75d92c4d6b5aad0c4baf3e88 (diff) | |
download | strongswan-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.c | 4 |
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; |