diff --git a/tests/fuzz/fuzz-open_channel.c b/tests/fuzz/fuzz-open_channel.c index bffbedd460f8..999685c65060 100644 --- a/tests/fuzz/fuzz-open_channel.c +++ b/tests/fuzz/fuzz-open_channel.c @@ -439,14 +439,14 @@ void init(int *argc, char ***argv) void run(const u8 *data, size_t size) { - if (setjmp(fuzz_env) != 0) - goto cleanup; - /* The function under test: fundee_channel(), calls * clean_tmpctx() mid-run, so create a separate context. */ const tal_t *run_ctx = tal(NULL, tal_t); + if (setjmp(fuzz_env) != 0) + goto cleanup; + /* Initialize the global pointers to the fuzz data. */ cursor = &data; max = &size;