浏览代码

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

(cherry picked from commit 543cd8f897bc43d5fe1eb4c562d8351b32778209)
Daniel-Constantin Mierla 3 年之前
父节点
当前提交
b9418cfae9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/ipops/ipops_pv.c

+ 1 - 1
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);