fixed bug #22070 "MIB_OBJECT_WRITE_ONLY not implemented in SNMP"

This commit is contained in:
sg 2015-02-13 21:12:23 +01:00
parent 7a0f814043
commit e3e3200f95
2 changed files with 6 additions and 4 deletions

View File

@ -171,6 +171,10 @@ HISTORY
++ Bugfixes:
2015-02-13: Simon Goldschmidt
* msg_in.c: fixed bug #22070 "MIB_OBJECT_WRITE_ONLY not implemented in SNMP"
2015-02-12: Simon Goldschmidt
* ip.h, ip4.c, ip6.c: fixed bug #36403 "ip4_input() and ip6_input() always pass
inp to higher layers": now the accepting netif is passed up, but the input
netif is available through ip_current_input_netif() if required.

View File

@ -178,8 +178,7 @@ snmp_msg_get_event(u8_t request_id, struct snmp_msg_pstat *msg_ps)
/* translate answer into a known lifeform */
en->get_object_def_a(request_id, np.ident_len, np.ident, &msg_ps->ext_object_def);
if ((msg_ps->ext_object_def.instance != MIB_OBJECT_NONE) &&
(msg_ps->ext_object_def.access & MIB_ACCESS_READ))
if (msg_ps->ext_object_def.instance != MIB_OBJECT_NONE)
{
msg_ps->state = SNMP_MSG_EXTERNAL_GET_VALUE;
en->get_value_q(request_id, &msg_ps->ext_object_def);
@ -297,8 +296,7 @@ snmp_msg_get_event(u8_t request_id, struct snmp_msg_pstat *msg_ps)
msg_ps->state = SNMP_MSG_INTERNAL_GET_OBJDEF;
mn->get_object_def(np.ident_len, np.ident, &object_def);
if ((object_def.instance != MIB_OBJECT_NONE) &&
(object_def.access & MIB_ACCESS_READ))
if (object_def.instance != MIB_OBJECT_NONE)
{
mn = mn;
}