Commit 6dd1537e authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] netfilter: Add comment above remove_expectations in destroy_conntrack()

I removed this code in a previous patch, and Patrick McHardy explained
what was wrong.  Add a comment.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 4759d4d9
...@@ -299,7 +299,10 @@ destroy_conntrack(struct nf_conntrack *nfct) ...@@ -299,7 +299,10 @@ destroy_conntrack(struct nf_conntrack *nfct)
ip_conntrack_destroyed(ct); ip_conntrack_destroyed(ct);
WRITE_LOCK(&ip_conntrack_lock); WRITE_LOCK(&ip_conntrack_lock);
/* Make sure don't leave any orphaned expectations lying around */ /* Expectations will have been removed in clean_from_lists,
* except TFTP can create an expectation on the first packet,
* before connection is in the list, so we need to clean here,
* too. */
if (ct->expecting) if (ct->expecting)
remove_expectations(ct, 1); remove_expectations(ct, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment