diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-06-11 00:20:32 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-06-11 00:20:32 +0200 |
commit | e20f5cc3a49035f7b422f62fdbaad12dc123094a (patch) | |
tree | c88931d9ae0af21977d4c437f498a3998d2be808 /src/sock.c | |
parent | 11a56a467cf4a7203ec7c3bfccbf8d2eb232686a (diff) |
WIP: cares
Diffstat (limited to 'src/sock.c')
-rw-r--r-- | src/sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |