Fix wrong return value in snmp_scalar_array_get_value()

This commit is contained in:
Dirk Ziegelmeier 2018-10-24 08:34:32 +02:00
parent 6a1fbc7433
commit 36e2d2255e

View File

@ -193,7 +193,7 @@ snmp_scalar_array_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, st
static s16_t
snmp_scalar_array_get_value(struct snmp_node_instance *instance, void *value)
{
s16_t result = SNMP_ERR_NOSUCHINSTANCE;
s16_t result = -1;
const struct snmp_scalar_array_node *array_node = (const struct snmp_scalar_array_node *)(const void *)instance->node;
const struct snmp_scalar_array_node_def *array_node_def = (const struct snmp_scalar_array_node_def *)instance->reference.const_ptr;