From 255a85d10f68a898c671f9387da61e0ba62a61c7 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 28 Dec 2019 10:55:13 -0800 Subject: fixes #986 ws_read_finish_str free invalid pointer Also, this has refactored the websocket stream test to the new acutest.h, and includes a much deeper test of fragmentation and reassembly of websocket streams. --- tests/testutil.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/testutil.h') diff --git a/tests/testutil.h b/tests/testutil.h index ab792557..b9acfedf 100644 --- a/tests/testutil.h +++ b/tests/testutil.h @@ -31,6 +31,9 @@ extern bool testutil_pollfd(int); // testutil_htons is just htons portably. extern uint16_t testutil_htons(uint16_t); +// testutil_htonl is just htonl portably. +extern uint32_t testutil_htonl(uint32_t); + // testutil_sleep sleeps the specified number of msec extern void testutil_sleep(int); -- cgit v1.2.3-70-g09d2