about summary refs log tree commit diff
path: root/src/afl-fuzz-mutators.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-04-11 08:02:54 +0200
committervan Hauser <vh@thc.org>2020-04-11 08:02:54 +0200
commit32ba60185eba8a3ae8eeba0b5830d1bb43e38473 (patch)
tree3b50122786758210b6f309d5facb4a599b814d7a /src/afl-fuzz-mutators.c
parent8bcfba8231aecc11a3815c74b6c53c86f418ece1 (diff)
downloadafl++-32ba60185eba8a3ae8eeba0b5830d1bb43e38473.tar.gz
more refactoring and update changelog
Diffstat (limited to 'src/afl-fuzz-mutators.c')
-rw-r--r--src/afl-fuzz-mutators.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afl-fuzz-mutators.c b/src/afl-fuzz-mutators.c
index a7d7ae18..efb1c117 100644
--- a/src/afl-fuzz-mutators.c
+++ b/src/afl-fuzz-mutators.c
@@ -34,7 +34,7 @@ void load_custom_mutator_py(afl_state_t *, char *);
 void setup_custom_mutator(afl_state_t *afl) {
 
   /* Try mutator library first */
-  u8 *fn = getenv("AFL_CUSTOM_MUTATOR_LIBRARY");
+  u8 *fn = afl->afl_env.afl_custom_mutator_library;
 
   if (fn) {
 
@@ -52,7 +52,7 @@ void setup_custom_mutator(afl_state_t *afl) {
 
   /* Try Python module */
 #ifdef USE_PYTHON
-  u8 *module_name = getenv("AFL_PYTHON_MODULE");
+  u8 *module_name = afl->afl_env.afl_python_module;
 
   if (module_name) {
 
@@ -67,7 +67,7 @@ void setup_custom_mutator(afl_state_t *afl) {
   }
 
 #else
-  if (getenv("AFL_PYTHON_MODULE"))
+  if (afl->afl_env.afl_python_module)
     FATAL("Your AFL binary was built without Python support");
 #endif