projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83f9f9a
)
nat: use g_hash_table_replace instead of insert function
author
Tomasz Bursztyka
<tomasz.bursztyka@linux.intel.com>
Tue, 17 Apr 2012 10:54:23 +0000
(13:54 +0300)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 17 Apr 2012 11:31:22 +0000
(13:31 +0200)
src/nat.c
patch
|
blob
|
history
diff --git
a/src/nat.c
b/src/nat.c
index 7c54541b29c24304b3c24b1fb05b29c3e0c86ce0..e17a3f882846c01108c4253ad61430f44b193de7 100644
(file)
--- 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);
}