mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-07 15:04:39 +08:00
Fixed sysObjectID length to copy private IDs with unkown lengths properly.
This commit is contained in:
parent
c5bd3f5e3b
commit
c5e99ada63
@ -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->instance = MIB_OBJECT_SCALAR;
|
||||||
od->access = MIB_OBJECT_READ_ONLY;
|
od->access = MIB_OBJECT_READ_ONLY;
|
||||||
od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_OBJ_ID);
|
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;
|
break;
|
||||||
case 3: /* sysUpTime */
|
case 3: /* sysUpTime */
|
||||||
od->instance = MIB_OBJECT_SCALAR;
|
od->instance = MIB_OBJECT_SCALAR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user