MFB: Fixed bug #48273 (snmp*_real_walk() returns SNMP errors as values).

This commit is contained in:
Ilia Alshanetsky 2009-06-01 13:11:09 +00:00
parent 2e7fa6df39
commit 5904ee8f8e

View File

@ -666,7 +666,7 @@ retry:
return;
} else if (st == SNMP_CMD_WALK) {
add_next_index_zval(return_value,snmpval); /* Add to returned array */
} else if (st == SNMP_CMD_REALWALK) {
} else if (st == SNMP_CMD_REALWALK && vars->type != SNMP_ENDOFMIBVIEW && vars->type != SNMP_NOSUCHOBJECT && vars->type != SNMP_NOSUCHINSTANCE) {
#ifdef HAVE_NET_SNMP
snprint_objid(buf2, sizeof(buf2), vars->name, vars->name_length);
#else