Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81914
b: refs/heads/master
c: 47d9504
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Feb 1, 2008
1 parent ceab653 commit 30b4ae2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1d670fdc8c14780b8e0ad915ad3bb13b2fd9223b
refs/heads/master: 47d9504543817b0aa908a37a335b90c30704a100
7 changes: 3 additions & 4 deletions trunk/net/netfilter/nf_conntrack_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,10 +776,8 @@ void __nf_ct_refresh_acct(struct nf_conn *ct,
write_lock_bh(&nf_conntrack_lock);

/* Only update if this is not a fixed timeout */
if (test_bit(IPS_FIXED_TIMEOUT_BIT, &ct->status)) {
write_unlock_bh(&nf_conntrack_lock);
return;
}
if (test_bit(IPS_FIXED_TIMEOUT_BIT, &ct->status))
goto acct;

/* If not in hash table, timer will not be active yet */
if (!nf_ct_is_confirmed(ct)) {
Expand All @@ -799,6 +797,7 @@ void __nf_ct_refresh_acct(struct nf_conn *ct,
}
}

acct:
#ifdef CONFIG_NF_CT_ACCT
if (do_acct) {
ct->counters[CTINFO2DIR(ctinfo)].packets++;
Expand Down

0 comments on commit 30b4ae2

Please sign in to comment.