Skip to content

Commit 8bbf97b

Browse files
authored
Fix policy based filter operation in scionutils.policyConn (#169)
The result of the policy based filter operation has been ignored in function queryPathsFiltered (policy_conn.go). There are currently no unit or integration tests for this.
1 parent 260d0fa commit 8bbf97b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ssh/scionutils/policy_conn.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ func queryPathsFiltered(ia addr.IA, policy *pathpol.Policy) ([]snet.Path, error)
172172
for _, path := range paths {
173173
pathSet[path.Fingerprint()] = path
174174
}
175-
policy.Filter(pathSet)
176-
filterPathSlice(&paths, pathSet)
175+
filterPathSlice(&paths, policy.Filter(pathSet))
177176
return paths, nil
178177
}
179178

0 commit comments

Comments
 (0)