aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/testcases/parser_test.c
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-24 07:55:29 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-24 07:55:29 +0000
commit1f9c9180e4afb43d0bec63b5e63146e08f41652a (patch)
treed0e8c0074a042deedb337acde26459f27dda2271 /Source/charon/testcases/parser_test.c
parent5e644203ec2251e04a609683209d6433030dc75c (diff)
downloadstrongswan-1f9c9180e4afb43d0bec63b5e63146e08f41652a.tar.bz2
strongswan-1f9c9180e4afb43d0bec63b5e63146e08f41652a.tar.xz
- memory leaks fixed
- failed tests fixed
Diffstat (limited to 'Source/charon/testcases/parser_test.c')
-rw-r--r--Source/charon/testcases/parser_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/charon/testcases/parser_test.c b/Source/charon/testcases/parser_test.c
index 85705a1f3..5ef5e5bf7 100644
--- a/Source/charon/testcases/parser_test.c
+++ b/Source/charon/testcases/parser_test.c
@@ -49,10 +49,10 @@ void test_parser_with_header_payload(tester_t *tester)
chunk_t header_chunk;
u_int8_t header_bytes[] = {
+ 0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x01,
+ 0x02,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x02,
0x03,0x45,0x06,0x28,
0x00,0x00,0x00,0x07,
0x00,0x00,0x00,0x1C,
@@ -219,7 +219,7 @@ void test_parser_with_nonce_payload(tester_t *tester)
tester->assert_true(tester,(result.len == 16), "parsed nonce lenght");
tester->assert_false(tester,(memcmp(nonce_bytes + 4, result.ptr, result.len)), "parsed nonce data");
nonce_payload->destroy(nonce_payload);
-
+ allocator_free_chunk(result);
}
/*