diff options
author | vanhauser-thc <vh@thc.org> | 2022-01-23 19:20:32 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2022-01-23 19:20:32 +0100 |
commit | 61d79f85c5f1f0d80bb7ab2d10d502fbd637ee83 (patch) | |
tree | ba793b1e3b841f9336e184a3cdab15da493c80fe /src/afl-forkserver.c | |
parent | 9baa402344ca50e030b4c5cd443a955d9830d7b3 (diff) | |
download | afl++-61d79f85c5f1f0d80bb7ab2d10d502fbd637ee83.tar.gz |
code format
Diffstat (limited to 'src/afl-forkserver.c')
-rw-r--r-- | src/afl-forkserver.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/afl-forkserver.c b/src/afl-forkserver.c index ffcb30c3..62110ad5 100644 --- a/src/afl-forkserver.c +++ b/src/afl-forkserver.c @@ -405,20 +405,25 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv, } - if (fsrv->nyx_standalone){ + if (fsrv->nyx_standalone) { + fsrv->nyx_runner = fsrv->nyx_handlers->nyx_new( fsrv->target_path, x, fsrv->nyx_bind_cpu_id, MAX_FILE, true); - } - else{ + + } else { + if (fsrv->nyx_parent) { + fsrv->nyx_runner = fsrv->nyx_handlers->nyx_new_parent( fsrv->target_path, x, fsrv->nyx_bind_cpu_id, MAX_FILE, true); } else { + fsrv->nyx_runner = fsrv->nyx_handlers->nyx_new_child( fsrv->target_path, x, fsrv->nyx_bind_cpu_id, fsrv->nyx_id); } + } if (fsrv->nyx_runner == NULL) { FATAL("Something went wrong ..."); } |