mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-12 22:14:25 +00:00
SNMP: Another release_instance call bugfix in SNMP Get/GetNext requests
This commit is contained in:
parent
0c39165701
commit
2b16cd93bf
@ -242,14 +242,8 @@ snmp_process_varbind(struct snmp_request *request, struct snmp_varbind *vb, u8_t
|
||||
request->error_status = snmp_get_node_instance_from_oid(vb->oid.id, vb->oid.len, &node_instance);
|
||||
|
||||
if (request->error_status == SNMP_ERR_NOERROR) {
|
||||
/* use 'getnext_validate' method for validation to aavoid code duplication (some checks have to be executed here) */
|
||||
/* use 'getnext_validate' method for validation to avoid code duplication (some checks have to be executed here) */
|
||||
request->error_status = snmp_msg_getnext_validate_node_inst(&node_instance, request);
|
||||
|
||||
if (request->error_status != SNMP_ERR_NOERROR) {
|
||||
if (node_instance.release_instance != NULL) {
|
||||
node_instance.release_instance(&node_instance);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user