There is a bug in ipops module related to matching subnet with mask /0
modules/ipops/ipops_mod.c:
> 533 static int w_ip_is_in_subnet(struct sip_msg* _msg, char* _s1,
char* _s2)
> ...
> 538 int netmask = 0;
> ...
> 589 if (netmask == 0)
> 590 {
> 591 if (_compare_ips(string1.s, string1.len, ip1_type,
string2.s, string2.len, ip2_type))
the code above has collision for cases when mask is not specified or
specified as zero.
for example: checking if 127.0.0.1 in 0.0.0.0/0 will give negative
result because of exact ip matching instead of subnet matching
and this is definitely not expected behavior if we speak about CIDR.
the simplest fix is to init 'netmask' variable with -1 and check against
-1 on branching:
> 538 int netmask = -1;
> 589 if (netmask == -1)
please, check and fix
--
Regards
Michael Furmur
Ambiguous was possible in params for multiple modules in one config line.
For example
```
loadmodule "presence_dialoginfo.so"
modparam("presence|dialplan", "db_url", "mysql://DBUSER:DBPASSWORD@localhost/DBNAME")
```
produced error
`parameter <db_url> of type <1> not found in module <presence_dialoginfo>`
because of ["presence_dialoginfo" =~ /^presence|dialplan$/] => True
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/703
-- Commit Summary --
* core: fix regex error for modules parameters
-- File Changes --
M modparam.c (8)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/703.patchhttps://github.com/kamailio/kamailio/pull/703.diff
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/703
Crashes has been reported when using mongodb modules compiled with mongo-c-driver having ssl enabled. Using mongo-c-driver without ssl enabled doesn't expose the issue.
To investigate mongo-c-driver sources and see if it is messing up with the memory manager set for libssl.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/660