about summary refs log tree commit diff
path: root/src/afl-fuzz.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r--src/afl-fuzz.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index 1c594168..5e2b89ad 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -1074,7 +1074,7 @@ int main(int argc, char **argv_orig, char **envp) {
 
     skipped_fuzz = fuzz_one(afl);
 
-    if (!afl->stop_soon && afl->sync_id && !skipped_fuzz) {
+    if (!skipped_fuzz && !afl->stop_soon && afl->sync_id) {
 
       if (!(sync_interval_cnt++ % SYNC_INTERVAL)) sync_fuzzers(afl);
 
@@ -1145,6 +1145,9 @@ int main(int argc, char **argv_orig, char **envp) {
 
 stop_fuzzing:
 
+  afl->force_ui_update = 1;  // ensure the screen is reprinted
+  show_stats(afl);           // print the screen one last time
+
   SAYF(CURSOR_SHOW cLRD "\n\n+++ Testing aborted %s +++\n" cRST,
        afl->stop_soon == 2 ? "programmatically" : "by user");