aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/Makefile.in5
-rw-r--r--example/reader_util.c4
2 files changed, 0 insertions, 9 deletions
diff --git a/example/Makefile.in b/example/Makefile.in
index e70bff36c..ec44acbe3 100644
--- a/example/Makefile.in
+++ b/example/Makefile.in
@@ -1,7 +1,6 @@
CC=@CC@
CXX=@CXX@
BUILD_MINGW=@BUILD_MINGW@
-BUILD_FUZZTARGETS=@BUILD_FUZZTARGETS@
SRCHOME=../src
CFLAGS=-g -fPIC -DPIC -I$(SRCHOME)/include @PCAP_INC@ @CFLAGS@
LIBNDPI=$(SRCHOME)/lib/libndpi.a
@@ -11,10 +10,6 @@ HEADERS=intrusion_detection.h reader_util.h $(SRCHOME)/include/ndpi_api.h \
OBJS=ndpiReader.o reader_util.o intrusion_detection.o
PREFIX?=@prefix@
-ifneq ($(BUILD_FUZZTARGETS),)
-CFLAGS += -DBUILD_FUZZTARGETS=1
-endif
-
ifneq ($(BUILD_MINGW),)
all:
@echo 'Examples disabled due to mingw build.'
diff --git a/example/reader_util.c b/example/reader_util.c
index af58d8db5..6a9b6f90e 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -1773,15 +1773,11 @@ struct ndpi_proto ndpi_workflow_process_packet(struct ndpi_workflow * workflow,
break;
default:
-#ifndef BUILD_FUZZTARGETS
/*
* We shoudn't be here, because we already checked that this datalink is supported.
* Should ndpi_is_datalink_supported() be updated?
- *
- * NOTE (toni): We get here quite often during fuzzing and it spams consoles and logfiles. ;)
*/
printf("Unknown datalink %d\n", datalink_type);
-#endif
return(nproto);
}