policy: fix not selecting better candidate on request
authorDavid Bauer <mail@david-bauer.net>
Sat, 25 Dec 2021 16:25:38 +0000 (17:25 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sat, 25 Dec 2021 16:40:04 +0000 (17:40 +0100)
commitbbf133ff466e814ed75ecdb300b3d889a2bf8beb
treeb5cc47d5bf3f2787c3d6851970f5bbd699914b8e
parent8e7b1ffc26117c4b0338a69f5a6fb396c18448bf
policy: fix not selecting better candidate on request

A unset bitmask leads to the candidate selection always return no
candidate, even if there is one.

To select a better candidate regardless of it's classification, provide
a bitmask containing all selection criteria.

Signed-off-by: David Bauer <mail@david-bauer.net>
event.h
policy.c