Skip to content

Incorrect decoding of OIDs with one component #17

@Cyberax

Description

@Cyberax

The code in

SNMP/src/BER.h

Line 1649 in 658afd0

_value = String(subidentifier / 40) + "."
assumes that every OID has at least 2 components. That's actually not the case, this is a perfectly acceptable query: snmpwalk -m ALL -Os -c public -v 2c 10.10.10.10 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions