summaryrefslogtreecommitdiffhomepage
path: root/server/fsm.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-05-06 14:12:21 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-05-06 14:12:21 +0900
commit8685ce669b91115cff74f344fda9d312de4d45ab (patch)
treebdec9c6609b5b2785981c1a27f9141998d9a90dc /server/fsm.go
parentafda28b5da24ff7bd2dbb722dc3715a87bec0b7e (diff)
server: don't apply in policy to EOR path
EOR path doesn't have theh complete information so applying a policy to EOR path leads to crash. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/fsm.go')
-rw-r--r--server/fsm.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/fsm.go b/server/fsm.go
index c6cd01c7..34f8b1f1 100644
--- a/server/fsm.go
+++ b/server/fsm.go
@@ -657,6 +657,9 @@ func (h *FSMHandler) recvMessageWithError() (*FsmMsg, error) {
id := h.fsm.pConf.Config.NeighborAddress
policyMutex.RLock()
for _, path := range fmsg.PathList {
+ if path.IsEOR() {
+ continue
+ }
if h.fsm.policy.ApplyPolicy(id, table.POLICY_DIRECTION_IN, path, nil) == nil {
path.Filter(id, table.POLICY_DIRECTION_IN)
}