Added pointer check
This commit is contained in:
@@ -1733,9 +1733,12 @@ static void ndpi_compile_rce_regex() {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ndpi_free((void *)pcreErrorStr);
|
if(pcreErrorStr != NULL)
|
||||||
|
ndpi_free((void *)pcreErrorStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ********************************** */
|
||||||
|
|
||||||
static int ndpi_is_rce_injection(char* query) {
|
static int ndpi_is_rce_injection(char* query) {
|
||||||
if(!initialized_comp_rx) {
|
if(!initialized_comp_rx) {
|
||||||
ndpi_compile_rce_regex();
|
ndpi_compile_rce_regex();
|
||||||
|
|||||||
Reference in New Issue
Block a user