aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/netfilter/nf_tables_core.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/net/netfilter/nf_tables_core.c b/net/netfilter/nf_tables_core.c
index be08a96b4f45..421c36ac5145 100644
--- a/net/netfilter/nf_tables_core.c
+++ b/net/netfilter/nf_tables_core.c
@@ -182,18 +182,16 @@ next_rule:
182 case NFT_RETURN: 182 case NFT_RETURN:
183 if (unlikely(pkt->skb->nf_trace)) 183 if (unlikely(pkt->skb->nf_trace))
184 nft_trace_packet(pkt, chain, rulenum, NFT_TRACE_RETURN); 184 nft_trace_packet(pkt, chain, rulenum, NFT_TRACE_RETURN);
185 185 break;
186 /* fall through */
187 case NFT_CONTINUE: 186 case NFT_CONTINUE:
187 if (unlikely(pkt->skb->nf_trace && !(chain->flags & NFT_BASE_CHAIN)))
188 nft_trace_packet(pkt, chain, ++rulenum, NFT_TRACE_RETURN);
188 break; 189 break;
189 default: 190 default:
190 WARN_ON(1); 191 WARN_ON(1);
191 } 192 }
192 193
193 if (stackptr > 0) { 194 if (stackptr > 0) {
194 if (unlikely(pkt->skb->nf_trace))
195 nft_trace_packet(pkt, chain, ++rulenum, NFT_TRACE_RETURN);
196
197 stackptr--; 195 stackptr--;
198 chain = jumpstack[stackptr].chain; 196 chain = jumpstack[stackptr].chain;
199 rule = jumpstack[stackptr].rule; 197 rule = jumpstack[stackptr].rule;