From 2b16cd93bfd73d243b9ca49120ccd051184ca655 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Fri, 1 Jan 2016 20:58:02 +0100 Subject: [PATCH] SNMP: Another release_instance call bugfix in SNMP Get/GetNext requests --- src/apps/snmp/snmp_msg.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/apps/snmp/snmp_msg.c b/src/apps/snmp/snmp_msg.c index 987f6e97..88be019e 100644 --- a/src/apps/snmp/snmp_msg.c +++ b/src/apps/snmp/snmp_msg.c @@ -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); - } - } } }