Skip to content

Commit

Permalink
Added pointer check
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Oct 31, 2023
1 parent f49cedc commit 773e9b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/ndpi_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 773e9b8

Please sign in to comment.