sharpened condition guarding reg ex loop

This commit is contained in:
Logan007 2020-08-07 01:21:11 +05:45
parent fed02348aa
commit 30e2594de9

View File

@ -816,7 +816,7 @@ static int process_udp(n2n_sn_t * sss,
existance (better from the security standpoint)
*/
if (!comm) {
if (!comm && sss->lock_communities) {
HASH_ITER(hh, sss->rules, re, tmp_re) {
allowed_match = re_matchp(re->rule, cmn.community, &match_length);