Added pointer check

This commit is contained in:
Luca Deri
2023-10-31 15:48:06 +01:00
parent f49cedc1e8
commit 773e9b8170
+4 -1
View File
@@ -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();