Module: kamailio
Branch: 5.8
Commit: 3f44cabcfc0abc83ae1971ac74fbb0bd36829ce4
URL:
https://github.com/kamailio/kamailio/commit/3f44cabcfc0abc83ae1971ac74fbb0b…
Author: Elena-Ramona Modroiu <ramona(a)asipto.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-04-01T08:07:14+02:00
corex: fix conditions for dns_cache modparam srv attributes
(cherry picked from commit 8114b2016d032484edafe4edd04fb02d52cfd058)
---
Modified: src/modules/corex/corex_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3f44cabcfc0abc83ae1971ac74fbb0b…
Patch:
https://github.com/kamailio/kamailio/commit/3f44cabcfc0abc83ae1971ac74fbb0b…
---
diff --git a/src/modules/corex/corex_mod.c b/src/modules/corex/corex_mod.c
index ed37b22c757..4152fbf5df4 100644
--- a/src/modules/corex/corex_mod.c
+++ b/src/modules/corex/corex_mod.c
@@ -454,7 +454,7 @@ static int corex_dns_cache_param_add(str *pval)
}
} else if(pit->name.len == 8
&& strncasecmp(pit->name.s, "priority", 8) == 0) {
- if(dns_flags == 0) {
+ if(dns_priority == 0) {
if(str2sint(&pit->body, &dns_priority) < 0) {
LM_ERR("invalid priority: %.*s\n", pit->body.len,
pit->body.s);
@@ -463,7 +463,7 @@ static int corex_dns_cache_param_add(str *pval)
}
} else if(pit->name.len == 6
&& strncasecmp(pit->name.s, "weight", 6) == 0) {
- if(dns_flags == 0) {
+ if(dns_weight == 0) {
if(str2sint(&pit->body, &dns_weight) < 0) {
LM_ERR("invalid weight: %.*s\n", pit->body.len,
pit->body.s);
@@ -472,7 +472,7 @@ static int corex_dns_cache_param_add(str *pval)
}
} else if(pit->name.len == 4
&& strncasecmp(pit->name.s, "port", 4) == 0) {
- if(dns_flags == 0) {
+ if(dns_port == 0) {
if(str2sint(&pit->body, &dns_port) < 0) {
LM_ERR("invalid port: %.*s\n", pit->body.len, pit->body.s);
return -1;