Skip to content

SplitVlanIds: vlan ID upper threshold is not verified #511

Description

@bgartzi

When checking different vlan trunk items, minID and maxID's upper thresholds are checked, ID's are not. Instead, minID is checked again.

id should be checked in this case.

if item.ID != nil {
id = *item.ID
if minID > 4096 {
return nil, errors.New("incorrect trunk id parameter")
}
vlans[id] = true

Reported by gemini: #427 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions