summaryrefslogtreecommitdiff
path: root/src/nat.c
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-04-17 13:54:23 +0300
committerMarcel Holtmann <marcel@holtmann.org>2012-04-17 13:31:22 +0200
commit243443997b0f19635b50fdb0ace3e467856debd5 (patch)
tree90d7b625c52044bc6633edb55bd39b28d951b340 /src/nat.c
parent83f9f9a65be98aeff76b6f087b85ec65773b14dd (diff)
downloadconnman-243443997b0f19635b50fdb0ace3e467856debd5.tar.gz
connman-243443997b0f19635b50fdb0ace3e467856debd5.tar.bz2
connman-243443997b0f19635b50fdb0ace3e467856debd5.zip
nat: use g_hash_table_replace instead of insert function
Diffstat (limited to 'src/nat.c')
-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);
}