Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314316
b: refs/heads/master
c: 32f5376
h: refs/heads/master
v: v3
  • Loading branch information
Pablo Neira Ayuso committed Jun 18, 2012
1 parent 9844732 commit 9754757
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd7462de461949e36d70f5b0bc17b98c5a00729c
refs/heads/master: 32f5376003920a8bc1bd97c6cddcf42df0b6a833
8 changes: 7 additions & 1 deletion trunk/net/netfilter/nf_conntrack_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,13 @@ int __nf_ct_try_assign_helper(struct nf_conn *ct, struct nf_conn *tmpl,
goto out;
}
} else {
memset(help->data, 0, helper->data_len);
/* We only allow helper re-assignment of the same sort since
* we cannot reallocate the helper extension area.
*/
if (help->helper != helper) {
RCU_INIT_POINTER(help->helper, NULL);
goto out;
}
}

rcu_assign_pointer(help->helper, helper);
Expand Down

0 comments on commit 9754757

Please sign in to comment.