diff options
-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(); |