mirror of
https://github.com/vishvananda/netlink.git
synced 2025-09-27 04:05:59 +08:00
fix logic bug caused by operator precedence
This commit is contained in:

committed by
Alessandro Boch

parent
1e68b2710d
commit
4d4ba1473f
@@ -1157,7 +1157,7 @@ func (h *Handle) RouteListFiltered(family int, filter *Route, filterMask uint64)
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if msg.Table != unix.RT_TABLE_MAIN {
|
if msg.Table != unix.RT_TABLE_MAIN {
|
||||||
if filter == nil || filter != nil && filterMask&RT_FILTER_TABLE == 0 {
|
if filter == nil || filterMask&RT_FILTER_TABLE == 0 {
|
||||||
// Ignore non-main tables
|
// Ignore non-main tables
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user