Module: kamailio
Branch: master
Commit: c6aec8b4e8e4840ae9b0359fbbb60188786647b8
URL:
https://github.com/kamailio/kamailio/commit/c6aec8b4e8e4840ae9b0359fbbb6018…
Author: Jose Luis Verdeguer <pepeluxx(a)gmail.com>
Committer: Jose Luis Verdeguer <pepeluxx(a)gmail.com>
Date: 2022-10-18T16:21:43+02:00
secfilter: lock position changed
---
Modified: src/modules/secfilter/secfilter.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c6aec8b4e8e4840ae9b0359fbbb6018…
Patch:
https://github.com/kamailio/kamailio/commit/c6aec8b4e8e4840ae9b0359fbbb6018…
---
diff --git a/src/modules/secfilter/secfilter.c b/src/modules/secfilter/secfilter.c
index f1e5f1e854..c876d39421 100644
--- a/src/modules/secfilter/secfilter.c
+++ b/src/modules/secfilter/secfilter.c
@@ -358,6 +358,7 @@ static int w_check_ua(struct sip_msg *msg)
len = ua.len;
/* User-agent whitelisted */
+ lock_get(&secf_data->lock);
list = secf_data->wl.ua;
while(list) {
if(ua.len > list->s.len)
@@ -375,7 +376,6 @@ static int w_check_ua(struct sip_msg *msg)
}
/* User-agent blacklisted */
- lock_get(&secf_data->lock);
list = secf_data->bl.ua;
while(list) {
if(ua.len > list->s.len)