summaryrefslogtreecommitdiffhomepage
path: root/table/adj.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/adj.go')
-rw-r--r--table/adj.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/table/adj.go b/table/adj.go
index f1843859..5ef540f6 100644
--- a/table/adj.go
+++ b/table/adj.go
@@ -60,7 +60,7 @@ func (adj *AdjRib) Update(pathList []*Path) {
o := old.Filtered(adj.id)
if o == POLICY_DIRECTION_IN && n == POLICY_DIRECTION_NONE {
adj.accepted[rf]++
- } else if o == POLICY_DIRECTION_NONE && n == POLICY_DIRECTION_IN {
+ } else if o != POLICY_DIRECTION_IN && n == POLICY_DIRECTION_IN {
adj.accepted[rf]--
}
} else {