Commit 2d17c5ba authored by Adam Wujek's avatar Adam Wujek 💬

lib/snmp: copy p from oid to leaf_obj

Copy the pointer even it is not used now
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 5d421fd7
......@@ -631,6 +631,7 @@ static int func_table(uint8_t *buf, uint8_t in_oid_limb_matched_len,
leaf_obj.oid_len = oid->oid_len;
leaf_obj.oid_match = in_oid_limb_end;
leaf_obj.asn = oid->asn;
leaf_obj.p = oid->p;
if (get_next_increase_oid)
in_oid_limb_end[TABLE_ROW]++;
......@@ -653,6 +654,7 @@ static int func_table(uint8_t *buf, uint8_t in_oid_limb_matched_len,
/* Update leaf_obj with changed values */
leaf_obj.oid_len = oid->oid_len;
leaf_obj.asn = oid->asn;
leaf_obj.p = oid->p;
/* Get the value for the leaf in the next column, first row */
return_len = oid->get(&in_oid_limb_end[oid->oid_len + 1],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment