about summary refs log tree commit diff
path: root/src/afl-fuzz.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-02-18 21:09:44 +0100
committervan Hauser <vh@thc.org>2020-02-18 21:09:44 +0100
commit273e3aed10b50eb73a0d3fde37858c545d8dc702 (patch)
tree341d9471877d8152c9dbd62e2db3334039ce7d12 /src/afl-fuzz.c
parenta971fc8f3662d3c5881d46c63682fd8a26d46dc5 (diff)
downloadafl++-273e3aed10b50eb73a0d3fde37858c545d8dc702.tar.gz
allow -i - resume with AFL_TMPDIR
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r--src/afl-fuzz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index eeb660f7..1feb96be 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -654,7 +654,7 @@ int main(int argc, char** argv, char** envp) {
   if (!strcmp(in_dir, out_dir))
     FATAL("Input and output directories can't be the same");
 
-  if ((tmp_dir = getenv("AFL_TMPDIR")) != NULL) {
+  if ((tmp_dir = getenv("AFL_TMPDIR")) != NULL && !in_place_resume) {
 
     char tmpfile[file_extension 
          ? strlen(tmp_dir) + 1 + 10 + 1 + strlen(file_extension) + 1