Skip to content

Commit

Permalink
Merge pull request #1002 from pi-hole/development
Browse files Browse the repository at this point in the history
Pi-hole FTL v5.3.4
  • Loading branch information
DL6ER authored Dec 25, 2020
2 parents 66919f2 + 1fce44e commit fc3bb0f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/regex.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ static bool compile_regex(const char *regexin, const enum regex_type regexid)
regex_data *regex = get_regex_ptr(regexid);
int index = num_regex[regexid]++;

// Update global counter from private counter
// This is safe her because we're (fork-wide) locked
num_regex[regexid] = num_regex[regexid];

// Extract possible Pi-hole extensions
char rgxbuf[strlen(regexin) + 1u];
// Parse special FTL syntax if present
Expand Down Expand Up @@ -268,7 +264,6 @@ int match_regex(const char *input, const DNSCacheData* dns_cache, const int clie
// Try to match the compiled regular expression against input
if(config.debug & DEBUG_REGEX)
logg("Executing: index = %d, preg = %p, str = \"%s\", pmatch = %p", index, &regex[index].regex, input, &match);
sync();
#ifdef USE_TRE_REGEX
int retval = tre_regexec(&regex[index].regex, input, 0, &match, 0);
#else
Expand Down

0 comments on commit fc3bb0f

Please sign in to comment.