mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
Dont use string comparison to rank labels. (#393)
This commit is contained in:
parent
4d68662913
commit
b423eed4e9
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ func (rlc *rolieLabelChecker) checkProtection(
|
|||
// the data again with the open client.
|
||||
// If this does not result in status forbidden the
|
||||
// server may be wrongly configured.
|
||||
case label >= csaf.TLPLabelAmber:
|
||||
case tlpLevel(label) >= tlpLevel(csaf.TLPLabelAmber):
|
||||
p.badAmberRedPermissions.use()
|
||||
// It is an error if we downloaded the advisory with
|
||||
// an unauthorized client.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue