about summary refs log tree commit diff
path: root/llvm_mode/afl-llvm-rt.o.c
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2020-04-07 10:56:31 +0200
committervan Hauser <vh@thc.org>2020-04-09 10:23:37 +0200
commit41225b53fa792df83aa8fd7c8be34f50f9e2bb2f (patch)
tree44348c9b2007fe7ffb80f3117d6b46bc17ed042c /llvm_mode/afl-llvm-rt.o.c
parent5efd306f7bd2a87ff4b628d6034ba2bcea4e022b (diff)
downloadafl++-41225b53fa792df83aa8fd7c8be34f50f9e2bb2f.tar.gz
small fixes
Diffstat (limited to 'llvm_mode/afl-llvm-rt.o.c')
-rw-r--r--llvm_mode/afl-llvm-rt.o.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm_mode/afl-llvm-rt.o.c b/llvm_mode/afl-llvm-rt.o.c
index 1e5708c6..6b812423 100644
--- a/llvm_mode/afl-llvm-rt.o.c
+++ b/llvm_mode/afl-llvm-rt.o.c
@@ -237,16 +237,12 @@ static void __afl_start_snapshots(void) {
         __afl_area_ptr[0] = 1;
         memset(__afl_prev_loc, 0, MAX_NGRAM_SIZE * sizeof(PREV_LOC_T));
 
-        fprintf(stderr, "STARTED %p...\n", __builtin_return_address(0));
-
         return;
 
       }
 
     } else {
 
-      fprintf(stderr, "child stopped\n");
-
       /* Special handling for persistent mode: if the child is alive but
          currently stopped, simply restart it with SIGCONT. */
 
@@ -274,7 +270,6 @@ static void __afl_start_snapshots(void) {
   }
 
 }
-
 #endif
 
 /* Fork server logic. */
@@ -283,8 +278,12 @@ static void __afl_start_forkserver(void) {
 
 #ifdef __linux__
   if (!is_persistent && !__afl_cmp_map && !getenv("AFL_NO_SNAPSHOT") &&
-      afl_snapshot_init() >= 0)
+      afl_snapshot_init() >= 0) {
+
     __afl_start_snapshots();
+    return;
+
+  }
 #endif
 
   static u8 tmp[4];