mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-14 04:26:45 +00:00
netfilter: nfnetlink: use original skbuff when committing/aborting
This allows us to access the original content of the batch from the commit and the abort paths. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
fcfa8f493f
commit
fc04733a1a
1 changed files with 3 additions and 3 deletions
|
@ -333,7 +333,7 @@ static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh,
|
||||||
* original skb.
|
* original skb.
|
||||||
*/
|
*/
|
||||||
if (err == -EAGAIN) {
|
if (err == -EAGAIN) {
|
||||||
ss->abort(skb);
|
ss->abort(oskb);
|
||||||
nfnl_unlock(subsys_id);
|
nfnl_unlock(subsys_id);
|
||||||
kfree_skb(nskb);
|
kfree_skb(nskb);
|
||||||
goto replay;
|
goto replay;
|
||||||
|
@ -357,9 +357,9 @@ static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh,
|
||||||
}
|
}
|
||||||
done:
|
done:
|
||||||
if (success && done)
|
if (success && done)
|
||||||
ss->commit(skb);
|
ss->commit(oskb);
|
||||||
else
|
else
|
||||||
ss->abort(skb);
|
ss->abort(oskb);
|
||||||
|
|
||||||
nfnl_unlock(subsys_id);
|
nfnl_unlock(subsys_id);
|
||||||
kfree_skb(nskb);
|
kfree_skb(nskb);
|
||||||
|
|
Loading…
Reference in a new issue