Browse code

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 authored on 06/05/2022 11:50:13
Showing 1 changed files
... ...
@@ -373,7 +373,7 @@ int dns_update_pv(str *hostname, str *name)
373 373
 		return -2;
374 374
 	}
375 375
 
376
-	dr = sr_dns_get_item(name);
376
+	dr = sr_dns_add_item(name);
377 377
 	if(dr==NULL)
378 378
 	{
379 379
 		LM_DBG("container not found: %s\n", name->s);