summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2021-06-11 00:20:32 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2021-06-11 00:20:32 +0200
commite20f5cc3a49035f7b422f62fdbaad12dc123094a (patch)
treec88931d9ae0af21977d4c437f498a3998d2be808
parent11a56a467cf4a7203ec7c3bfccbf8d2eb232686a (diff)
WIP: cares
-rw-r--r--src/sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sock.c b/src/sock.c
index 6abc70b..cefafd9 100644
--- a/src/sock.c
+++ b/src/sock.c
@@ -68,11 +68,11 @@ static ares_channel setup_resolver (const char *bind_to, const char *bind_to_alt
}
if (!val) {
- htab_insert(resolvers, bind_to, tmp_val);
+ htab_insert(resolvers, strdup(bind_to), tmp_val);
}
if (!val_alt && bind_to_alt) {
- htab_insert(resolvers, bind_to_alt, tmp_val);
+ htab_insert(resolvers, strdup(bind_to_alt), tmp_val);
}
if (val && val_alt && val->p != val_alt->p) {