From c5e99ada6341421f6ac5f8749174202e4616dde4 Mon Sep 17 00:00:00 2001 From: christiaans Date: Fri, 8 Sep 2006 09:22:28 +0000 Subject: [PATCH] Fixed sysObjectID length to copy private IDs with unkown lengths properly. --- src/core/snmp/mib2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/snmp/mib2.c b/src/core/snmp/mib2.c index bed77df2..43659b78 100644 --- a/src/core/snmp/mib2.c +++ b/src/core/snmp/mib2.c @@ -1974,7 +1974,7 @@ system_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od) od->instance = MIB_OBJECT_SCALAR; od->access = MIB_OBJECT_READ_ONLY; od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_OBJ_ID); - od->v_len = SNMP_SYSOBJID_LEN * sizeof(s32_t); + od->v_len = sysobjid.len * sizeof(s32_t); break; case 3: /* sysUpTime */ od->instance = MIB_OBJECT_SCALAR;