From 52c6ef31b47792c3aa1011a76739bccf49c4b862 Mon Sep 17 00:00:00 2001 From: Eiichiro Watanabe Date: Thu, 8 Nov 2018 13:30:15 +0900 Subject: server: Fix timestamp when msg is nil --- pkg/server/bmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/server') 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 } } -- cgit v1.2.3