Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178291418
D62421.1796445886.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
602 B
Referenced Files
None
Subscribers
None
D62421.1796445886.diff
View Options
diff --git a/sys/netpfil/ipfw/ip_fw_nat.c b/sys/netpfil/ipfw/ip_fw_nat.c
--- a/sys/netpfil/ipfw/ip_fw_nat.c
+++ b/sys/netpfil/ipfw/ip_fw_nat.c
@@ -548,8 +548,10 @@
if (gencnt != chain->gencnt)
tcfg = lookup_nat_name(&chain->nat, ucfg->name);
IPFW_WLOCK(chain);
- if (tcfg != NULL)
+ if (tcfg != NULL) {
LIST_REMOVE(tcfg, _next);
+ flush_nat_ptrs(chain, tcfg->id);
+ }
LIST_INSERT_HEAD(&chain->nat, ptr, _next);
IPFW_WUNLOCK(chain);
chain->gencnt++;
@@ -557,7 +559,7 @@
IPFW_UH_WUNLOCK(chain);
if (tcfg != NULL)
- free_nat_instance(ptr);
+ free_nat_instance(tcfg);
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 5, 4:44 AM (18 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42219046
Default Alt Text
D62421.1796445886.diff (602 B)
Attached To
Mode
D62421: ipfw_nat: free the replaced instance in nat44_config()
Attached
Detach File
Event Timeline