Commit 5aed9387 authored by Balazs Peter Odor's avatar Balazs Peter Odor Committed by Pablo Neira Ayuso

netfilter: nf_nat_sip: fix mangling

In (b20ab9c netfilter: nf_ct_helper: better logging for dropped packets)
there were some missing brackets around the logging information, thus
always returning drop.

Closes https://bugzilla.kernel.org/show_bug.cgi?id=60061Signed-off-by: default avatarBalazs Peter Odor <balazs@obiserver.hu>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 142dcdd3
...@@ -230,9 +230,10 @@ static unsigned int nf_nat_sip(struct sk_buff *skb, unsigned int protoff, ...@@ -230,9 +230,10 @@ static unsigned int nf_nat_sip(struct sk_buff *skb, unsigned int protoff,
&ct->tuplehash[!dir].tuple.src.u3, &ct->tuplehash[!dir].tuple.src.u3,
false); false);
if (!mangle_packet(skb, protoff, dataoff, dptr, datalen, if (!mangle_packet(skb, protoff, dataoff, dptr, datalen,
poff, plen, buffer, buflen)) poff, plen, buffer, buflen)) {
nf_ct_helper_log(skb, ct, "cannot mangle received"); nf_ct_helper_log(skb, ct, "cannot mangle received");
return NF_DROP; return NF_DROP;
}
} }
/* The rport= parameter (RFC 3581) contains the port number /* The rport= parameter (RFC 3581) contains the port number
......
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