about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-11-28 09:14:29 +0100
committervanhauser-thc <vh@thc.org>2023-11-28 09:14:29 +0100
commitdd9a04c901c79fe2f3f078de6cc0777e3a5d96df (patch)
tree57c5f0e96f340e6adb9788f381d4d85525c48207 /src
parentd2aef74ad77e49a96f152517445a515ba4814bcb (diff)
downloadafl++-dd9a04c901c79fe2f3f078de6cc0777e3a5d96df.tar.gz
code format
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-run.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c
index b6d5df95..34a5ff81 100644
--- a/src/afl-fuzz-run.c
+++ b/src/afl-fuzz-run.c
@@ -62,12 +62,16 @@ fuzz_run_target(afl_state_t *afl, afl_forkserver_t *fsrv, u32 timeout) {
 
   /* If post_run() function is defined in custom mutator, the function will be
      called each time after AFL++ executes the target program. */
-  
+
   if (unlikely(afl->custom_mutators_count)) {
 
     LIST_FOREACH(&afl->custom_mutator_list, struct custom_mutator, {
 
-      if (el->afl_custom_post_run) { el->afl_custom_post_run(el->data); }
+      if (unlikely(el->afl_custom_post_run)) {
+
+        el->afl_custom_post_run(el->data);
+
+      }
 
     });
 
@@ -1123,3 +1127,4 @@ common_fuzz_stuff(afl_state_t *afl, u8 *out_buf, u32 len) {
   return 0;
 
 }
+