aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-11-03 15:52:19 +0100
committervan Hauser <vh@thc.org>2020-11-03 15:52:19 +0100
commit7b4d1c408909dd27d81967eced963f3b661511c8 (patch)
tree4517604d95f20933ee1ab977ec6ac55e1fd2b308 /src
parent245f511a1d3432927ba101e270d7c6e4157e8e63 (diff)
downloadafl++-7b4d1c408909dd27d81967eced963f3b661511c8.tar.gz
revert out_fd copy
Diffstat (limited to 'src')
-rw-r--r--src/afl-forkserver.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/afl-forkserver.c b/src/afl-forkserver.c
index d294f7fc..a8c486b6 100644
--- a/src/afl-forkserver.c
+++ b/src/afl-forkserver.c
@@ -107,6 +107,7 @@ void afl_fsrv_init_dup(afl_forkserver_t *fsrv_to, afl_forkserver_t *from) {
fsrv_to->support_shmem_fuzz = from->support_shmem_fuzz;
fsrv_to->out_file = from->out_file;
fsrv_to->dev_urandom_fd = from->dev_urandom_fd;
+ fsrv_to->out_fd = from->out_fd; // not sure this is a good idea
// These are forkserver specific.
fsrv_to->out_dir_fd = -1;
@@ -114,16 +115,6 @@ void afl_fsrv_init_dup(afl_forkserver_t *fsrv_to, afl_forkserver_t *from) {
fsrv_to->use_fauxsrv = 0;
fsrv_to->last_run_timed_out = 0;
- if (fsrv_to->use_stdin) {
-
- fsrv_to->out_fd = 0;
-
- } else {
-
- fsrv_to->out_fd = -1;
-
- }
-
fsrv_to->init_child_func = fsrv_exec_child;
// Note: do not copy ->add_extra_func