aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2023-08-12 00:27:37 +0200
committerLuca Deri <deri@ntop.org>2023-08-12 00:27:37 +0200
commitfe634b8d55b58e7f63ddc38ac29d63592b1801e3 (patch)
tree3729aec7cfcbf2aafb6f9c3e06d8b6ee2ddcf5d3
parent8e17f508531be977eab15746a0a733f0866e7f07 (diff)
Fixed to address issue
Run ./utils/check_symbols.sh || { FAILED=$?; echo "::error file=${NDPI_LIB}::Unwanted libc symbols found: ${FAILED}. Please make sure to use only ndpi_malloc/ndpi_calloc/ndpi_realloc/ndpi_free wrapper instead of malloc/calloc/realloc/free."; false; } [ndpi_filter.o]: calloc Unwanted symbols found: 1 Please make sure to use only ndpi_malloc/ndpi_calloc/ndpi_realloc/ndpi_free wrapper instead of malloc/calloc/realloc/free Error: Unwanted libc symbols found: 1. Please make sure to use only ndpi_malloc/ndpi_calloc/ndpi_realloc/ndpi_free wrapper instead of
-rw-r--r--src/lib/ndpi_filter.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ndpi_filter.c b/src/lib/ndpi_filter.c
index 579d49638..2c06773fb 100644
--- a/src/lib/ndpi_filter.c
+++ b/src/lib/ndpi_filter.c
@@ -35,8 +35,10 @@
#include "ndpi_includes.h"
#include "ndpi_encryption.h"
-#define malloc ndpi_malloc
-#define free ndpi_free
+#define malloc ndpi_malloc
+#define calloc ndpi_calloc
+#define realloc ndpi_realloc
+#define free ndpi_free
#include "third_party/include/binaryfusefilter.h"