From e78073e0abf87bee0fd6a21744cb6bf7188f4bb7 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Fri, 6 May 2016 14:14:03 +0900 Subject: table: don't access path.info directly Could be crash. Signed-off-by: FUJITA Tomonori --- table/destination.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'table/destination.go') diff --git a/table/destination.go b/table/destination.go index 7cca1b37..1936dc01 100644 --- a/table/destination.go +++ b/table/destination.go @@ -758,8 +758,8 @@ func compareByRouterID(path1, path2 *Path) (*Path, error) { func compareByAge(path1, path2 *Path) *Path { if !path1.IsIBGP() && !path2.IsIBGP() && !SelectionOptions.ExternalCompareRouterId { - age1 := path1.info.timestamp.UnixNano() - age2 := path2.info.timestamp.UnixNano() + age1 := path1.GetTimestamp().UnixNano() + age2 := path2.GetTimestamp().UnixNano() if age1 == age2 { return nil } else if age1 < age2 { -- cgit v1.2.3