diff options
author | van Hauser <vh@thc.org> | 2020-05-15 09:27:15 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-05-15 09:27:15 +0200 |
commit | d536ddc24085bced267143b4f45102715d71693e (patch) | |
tree | 7028606718ed9e4bb0c8d11406ef9c6e4856ba94 /src/afl-fuzz-run.c | |
parent | 564399bd754e355d28da5b498856c05b63901661 (diff) | |
download | afl++-d536ddc24085bced267143b4f45102715d71693e.tar.gz |
change: slaves only sync from masters
Diffstat (limited to 'src/afl-fuzz-run.c')
-rw-r--r-- | src/afl-fuzz-run.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c index bbcd9a99..3708cf1a 100644 --- a/src/afl-fuzz-run.c +++ b/src/afl-fuzz-run.c @@ -401,19 +401,15 @@ void sync_fuzzers(afl_state_t *afl) { } - /* - // a slave only syncs from a master, a master syncs from everyone - if (likely(afl->is_slave)) { + // a slave only syncs from a master, a master syncs from everyone + if (likely(afl->is_slave)) { - u8 x = alloc_printf("%s/%s/is_master", afl->sync_dir, sd_ent->d_name); - int res = access(x, F_OK); - free(x); - if (res != 0) - continue; + u8 *x = alloc_printf("%s/%s/is_master", afl->sync_dir, sd_ent->d_name); + int res = access(x, F_OK); + free(x); + if (likely(res != 0)) continue; - } - - */ + } /* Skip anything that doesn't have a queue/ subdirectory. */ |