diff options
author | Alfred E. Heggestad <aeh@db.org> | 2016-06-06 10:14:12 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2016-06-06 10:14:12 +0200 |
commit | 6910d50e9b1e80fe758b259149012e7e062eecd0 (patch) | |
tree | aecd149deed8ae71349e3b2e626e53f57a9c974a /modules/rst/rst.c | |
parent | 362914f55831f4ad3afd7c0cad8f01f2f8b4892c (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.c | 3 |
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); |