summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nat.c b/src/nat.c
index 7c54541b..e17a3f88 100644
--- a/src/nat.c
+++ b/src/nat.c
@@ -135,7 +135,7 @@ int __connman_nat_enable(const char *name, const char *address,
nat->address = g_strdup(address);
nat->prefixlen = prefixlen;
- g_hash_table_insert(nat_hash, g_strdup(name), nat);
+ g_hash_table_replace(nat_hash, g_strdup(name), nat);
return enable_nat(nat);
}