From 30e2594de9ce26da1039ba4c3e60dd12c42ef696 Mon Sep 17 00:00:00 2001 From: Logan007 Date: Fri, 7 Aug 2020 01:21:11 +0545 Subject: [PATCH] sharpened condition guarding reg ex loop --- src/sn_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sn_utils.c b/src/sn_utils.c index 1d7409f..edb7ef0 100644 --- a/src/sn_utils.c +++ b/src/sn_utils.c @@ -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);