aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Panasiuk <4141848+ampanasiuk@users.noreply.github.com>2021-01-27 01:12:13 +0000
committerAdrian Panasiuk <4141848+ampanasiuk@users.noreply.github.com>2021-01-27 03:04:06 +0000
commitd046b28f2fb5981ce4a28ddcfac6ec3405624450 (patch)
treeaad346b11e0487196cbbd459ced47c6be2deecbb /src
parent36b5336152cd886d911f4299c3154b7817c94838 (diff)
downloadAFLplusplus-d046b28f2fb5981ce4a28ddcfac6ec3405624450.tar.gz
Fix "src" attribute in sync stage filenames (#703)
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-run.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c
index 17c305ed..97cb7415 100644
--- a/src/afl-fuzz-run.c
+++ b/src/afl-fuzz-run.c
@@ -627,9 +627,8 @@ void sync_fuzzers(afl_state_t *afl) {
}
if (m >= n) { goto close_sync; } // nothing new
- o = n - 1;
- while (o >= m) {
+ for (o = m; o < n; o++) {
s32 fd;
struct stat st;
@@ -637,7 +636,6 @@ void sync_fuzzers(afl_state_t *afl) {
snprintf(path, sizeof(path), "%s/%s", qd_path, namelist[o]->d_name);
afl->syncing_case = next_min_accept;
next_min_accept++;
- o--;
/* Allow this to fail in case the other fuzzer is resuming or so... */