diff options
author | Martin Willi <martin@strongswan.org> | 2006-04-10 08:07:38 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-04-10 08:07:38 +0000 |
commit | 5113680f95e522c677cdd37072cfffbdca06831e (patch) | |
tree | 973ac57accbc66b042e5307942c6cbbbf4f19579 /Source/testing/receiver_test.c | |
parent | 6862128151fb78f63685a8da5575783c426d64a7 (diff) | |
download | strongswan-5113680f95e522c677cdd37072cfffbdca06831e.tar.bz2 strongswan-5113680f95e522c677cdd37072cfffbdca06831e.tar.xz |
- split up in libstrong, charon, stroke, testing done
- new leak detective with malloc hook in library
- useable, but needs improvements
- logger_manager has now a single instance per library
- allows use of loggers from any linking prog
- a LOT of other things
Diffstat (limited to 'Source/testing/receiver_test.c')
-rw-r--r-- | Source/testing/receiver_test.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/testing/receiver_test.c b/Source/testing/receiver_test.c index ed93a9f44..763e52517 100644 --- a/Source/testing/receiver_test.c +++ b/Source/testing/receiver_test.c @@ -33,7 +33,6 @@ #include <queues/job_queue.h> #include <queues/jobs/incoming_packet_job.h> #include <encoding/payloads/encodings.h> -#include <utils/allocator.h> /** * Number of packets to send by sender-thread @@ -64,8 +63,8 @@ void test_receiver(protected_tester_t *tester) { packet = packet_create(); packet->set_destination(packet, host_create(AF_INET,DESTINATION_IP,PORT_TO_SEND)); - test_data.ptr = allocator_alloc_thing(int); - test_data.len = ( sizeof(int)); + test_data.len = (sizeof(int)); + test_data.ptr = malloc(test_data.len); *((int *) (test_data.ptr)) = i; packet->set_data(packet, test_data); charon->socket->send(charon->socket, packet); |