Module: kamailio
Branch: master
Commit: 543cd8f897bc43d5fe1eb4c562d8351b32778209
URL:
https://github.com/kamailio/kamailio/commit/543cd8f897bc43d5fe1eb4c562d8351…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-05-06T13:50:13+02:00
ipops: add dns container in dns_update_pv() if not created before
- dns context creation relied on using the dns variable in some way, the
main purpose of dns_update_pv() being to fill the variable, but one may
want to use it for testing only
---
Modified: src/modules/ipops/ipops_pv.c
---
Diff:
https://github.com/kamailio/kamailio/commit/543cd8f897bc43d5fe1eb4c562d8351…
Patch:
https://github.com/kamailio/kamailio/commit/543cd8f897bc43d5fe1eb4c562d8351…
---
diff --git a/src/modules/ipops/ipops_pv.c b/src/modules/ipops/ipops_pv.c
index 1afc806541..9ee6f5879a 100644
--- a/src/modules/ipops/ipops_pv.c
+++ b/src/modules/ipops/ipops_pv.c
@@ -373,7 +373,7 @@ int dns_update_pv(str *hostname, str *name)
return -2;
}
- dr = sr_dns_get_item(name);
+ dr = sr_dns_add_item(name);
if(dr==NULL)
{
LM_DBG("container not found: %s\n", name->s);