Add config ifdef
MODIFY
include/config.h
include/config.h
#define USE_COLOR
+/* Enable sending statistics over a StatsD daemon.
+Server config can be adjusted with AFL_STATSD_HOST and AFL_STATSD_PORT env var.
+*/
+
+#define USE_STATSD
+
/* If you want to have the original afl internal memory corruption checks.
Disabled by default for speed. it is better to use "make ASAN_BUILD=1". */

MODIFY
src/afl-fuzz-run.c
src/afl-fuzz-run.c
@@ -901,10 +901,12 @@ common_fuzz_stuff(afl_state_t *afl, u8 *out_buf, u32 len) {
afl->stage_cur + 1 == afl->stage_max) {
show_stats(afl);
+ #ifdef USE_STATSD
if(send_statsd_metric(afl)){
//Change me to something realistic; don't fail on connection / lookup fail for metrics...
exit(1);
}
+ #endif
}
return 0;

Add config ifdef