diff options
author | Eiichiro Watanabe <a16tochjp@gmail.com> | 2018-11-08 13:30:15 +0900 |
---|---|---|
committer | Eiichiro Watanabe <a16tochjp@gmail.com> | 2018-11-08 13:30:15 +0900 |
commit | 52c6ef31b47792c3aa1011a76739bccf49c4b862 (patch) | |
tree | 9bcb8539647849f5d85d464e6813fe43674ca82e | |
parent | b48c5613dd62f99854bfa2d87b62838b4b0d14b7 (diff) |
server: Fix timestamp when msg is nil
-rw-r--r-- | pkg/server/bmp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/server/bmp.go b/pkg/server/bmp.go index a7d088bd..48215628 100644 --- a/pkg/server/bmp.go +++ b/pkg/server/bmp.go @@ -180,7 +180,7 @@ func (b *bmpClient) loop() { for _, path := range pathList { for _, u := range table.CreateUpdateMsgFromPaths([]*table.Path{path}) { payload, _ := u.Serialize() - if err := write(bmpPeerRoute(bmp.BMP_PEER_TYPE_GLOBAL, msg.PostPolicy, 0, true, info, msg.Timestamp.Unix(), payload)); err != nil { + if err := write(bmpPeerRoute(bmp.BMP_PEER_TYPE_GLOBAL, msg.PostPolicy, 0, true, info, path.GetTimestamp().Unix(), payload)); err != nil { return false } } |