about summary refs log tree commit diff
path: root/src/afl-fuzz-run.c
diff options
context:
space:
mode:
authorh1994st <h1994st@gmail.com>2020-03-06 16:28:26 -0500
committerh1994st <h1994st@gmail.com>2020-03-06 16:28:26 -0500
commita10a3f2fa75f16bf7781a3c02cd23eab7164cff1 (patch)
tree653138ebd36b80fd9fd3faa31eedd8666e185135 /src/afl-fuzz-run.c
parent9e5c4973eb8f9b2f007bb1fe10976a4634c0ea6a (diff)
parent2287534ec6dd68b06a5052caa4ab3305d15861ec (diff)
downloadafl++-a10a3f2fa75f16bf7781a3c02cd23eab7164cff1.tar.gz
Merge branch 'master' of https://github.com/vanhauser-thc/AFLplusplus
Diffstat (limited to 'src/afl-fuzz-run.c')
-rw-r--r--src/afl-fuzz-run.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c
index 56c52c9b..58985d8b 100644
--- a/src/afl-fuzz-run.c
+++ b/src/afl-fuzz-run.c
@@ -643,7 +643,7 @@ void sync_fuzzers(char** argv) {
 
         fault = run_target(argv, exec_tmout);
 
-        if (stop_soon) return;
+        if (stop_soon) goto close_sync;
 
         syncing_party = sd_ent->d_name;
         queued_imported += save_if_interesting(argv, mem, st.st_size, fault);
@@ -662,6 +662,7 @@ void sync_fuzzers(char** argv) {
 
     ck_write(id_fd, &next_min_accept, sizeof(u32), qd_synced_path);
 
+close_sync:
     close(id_fd);
     closedir(qd);
     ck_free(qd_path);