summaryrefslogtreecommitdiff
path: root/modules/rst/rst.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-06-06 10:14:12 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-06-06 10:14:12 +0200
commit6910d50e9b1e80fe758b259149012e7e062eecd0 (patch)
treeaecd149deed8ae71349e3b2e626e53f57a9c974a /modules/rst/rst.c
parent362914f55831f4ad3afd7c0cad8f01f2f8b4892c (diff)
net: make networking code re-entrant
- The network instance is now in struct network and does not use any local/static data - A new top-level struct in baresip.c owns the single instance of struct network it is a long-term goal to remove all local/static data from libbaresip and make it fully re-entrant.
Diffstat (limited to 'modules/rst/rst.c')
-rw-r--r--modules/rst/rst.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/rst/rst.c b/modules/rst/rst.c
index 8f2fea3..83298a9 100644
--- a/modules/rst/rst.c
+++ b/modules/rst/rst.c
@@ -308,7 +308,8 @@ static int rst_connect(struct rst *rst)
}
}
else {
- err = dnsc_query(&rst->dnsq, net_dnsc(), rst->host, DNS_TYPE_A,
+ err = dnsc_query(&rst->dnsq, net_dnsc(baresip_network()),
+ rst->host, DNS_TYPE_A,
DNS_CLASS_IN, true, dns_handler, rst);
if (err) {
warning("rst: dns query error: %m\n", err);