aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/testcases/parser_test.c
diff options
context:
space:
mode:
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);
}
/*