about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-11-02 21:17:37 +0100
committerhexcoder- <heiko@hexco.de>2020-11-02 21:17:37 +0100
commit350c3b323a59c99891635a233c3f82f83653947c (patch)
tree3d32f866dcce0dbc907fe5d15fcbd3c4aa2e9562
parentd026a9a9c5e1b82a8c2e80df6f28d903e039affa (diff)
downloadafl++-350c3b323a59c99891635a233c3f82f83653947c.tar.gz
fix for #562
-rw-r--r--src/afl-tmin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/afl-tmin.c b/src/afl-tmin.c
index efc12d4f..06037d61 100644
--- a/src/afl-tmin.c
+++ b/src/afl-tmin.c
@@ -656,6 +656,7 @@ static void set_up_environment(afl_forkserver_t *fsrv) {
 
   unlink(out_file);
 
+  fsrv->out_file = out_file;
   fsrv->out_fd = open(out_file, O_RDWR | O_CREAT | O_EXCL, 0600);
 
   if (fsrv->out_fd < 0) { PFATAL("Unable to create '%s'", out_file); }