Merge branch 'master' into 'live'

Fix AuthTag-Subsumption to not be order-dependent

Closes #241

See merge request !117
This commit is contained in:
Gregor Kleen 2018-11-30 18:01:15 +01:00
commit 1168ad3176

View File

@ -562,7 +562,7 @@ routeAuthTags = fmap (impureNonNull . Set.mapMonotonic impureNonNull) . ofoldM p
| oany (authTags `Set.isSubsetOf`) prev
-> Right prev
| otherwise
-> Right $ Set.insert authTags prev
-> Right . Set.insert authTags $ Set.filter (not . (`Set.isSubsetOf` authTags)) prev
| otherwise
= Left $ InvalidAuthTag t