Skip to content

Commit fc04733

Browse files
committed
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 <[email protected]>
1 parent fcfa8f4 commit fc04733

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

net/netfilter/nfnetlink.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh,
333333
* original skb.
334334
*/
335335
if (err == -EAGAIN) {
336-
ss->abort(skb);
336+
ss->abort(oskb);
337337
nfnl_unlock(subsys_id);
338338
kfree_skb(nskb);
339339
goto replay;
@@ -357,9 +357,9 @@ static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh,
357357
}
358358
done:
359359
if (success && done)
360-
ss->commit(skb);
360+
ss->commit(oskb);
361361
else
362-
ss->abort(skb);
362+
ss->abort(oskb);
363363

364364
nfnl_unlock(subsys_id);
365365
kfree_skb(nskb);

0 commit comments

Comments
 (0)