diff options
author | Luca Deri <deri@ntop.org> | 2023-10-31 15:48:06 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2023-10-31 15:48:06 +0100 |
commit | 773e9b817019e6e79f6701667026092051d3390e (patch) | |
tree | 7fcbd58a33fb415eb6267af126055b6f59416194 | |
parent | f49cedc1e8dea672740ee3fafd7672d66b7e712b (diff) |
Added pointer check
-rw-r--r-- | src/lib/ndpi_utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 645dfc12a..fccc9459c 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -1733,9 +1733,12 @@ static void ndpi_compile_rce_regex() { #endif } - ndpi_free((void *)pcreErrorStr); + if(pcreErrorStr != NULL) + ndpi_free((void *)pcreErrorStr); } +/* ********************************** */ + static int ndpi_is_rce_injection(char* query) { if(!initialized_comp_rx) { ndpi_compile_rce_regex(); |