Skip to content

Commit

Permalink
netfilter: netns nf_conntrack: SIP conntracking in netns
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
  • Loading branch information
Alexey Dobriyan authored and Patrick McHardy committed Oct 8, 2008
1 parent 08f6547 commit a5c3a80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/netfilter/nf_conntrack_sip.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,7 @@ static int set_expected_rtp_rtcp(struct sk_buff *skb,
struct nf_conntrack_expect *exp, *rtp_exp, *rtcp_exp;
enum ip_conntrack_info ctinfo;
struct nf_conn *ct = nf_ct_get(skb, &ctinfo);
struct net *net = nf_ct_net(ct);
enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo);
union nf_inet_addr *saddr;
struct nf_conntrack_tuple tuple;
Expand Down Expand Up @@ -775,7 +776,7 @@ static int set_expected_rtp_rtcp(struct sk_buff *skb,

rcu_read_lock();
do {
exp = __nf_ct_expect_find(&init_net, &tuple);
exp = __nf_ct_expect_find(net, &tuple);

if (!exp || exp->master == ct ||
nfct_help(exp->master)->helper != nfct_help(ct)->helper ||
Expand Down

0 comments on commit a5c3a80

Please sign in to comment.