diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-05-06 14:14:03 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-05-06 14:14:03 +0900 |
commit | e78073e0abf87bee0fd6a21744cb6bf7188f4bb7 (patch) | |
tree | 73a152df3a8bbd4df528838053485f368f54e747 /table | |
parent | 8685ce669b91115cff74f344fda9d312de4d45ab (diff) |
table: don't access path.info directly
Could be crash.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r-- | table/destination.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |