0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-03-11 17:08:46 +00:00

Minor bugfix

This commit is contained in:
Vojtech Vilimek 2023-08-30 17:22:52 +02:00
parent 4c29a3911e
commit 3c718d162c

View File

@ -615,10 +615,10 @@ do_response(struct snmp_proto *p, byte *buf, uint size UNUSED)
u8
snmp_get_mib_class(const struct oid *oid)
{
ASSUME(oid->n_subid > 2);
if (oid->prefix != 2 && oid->ids[0] != SNMP_MIB_2)
return SNMP_CLASS_INVALID;
ASSUME(oid->n_subid > 1);
switch (oid->ids[1])
{
case SNMP_BGP4_MIB: