diff options
-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) { |