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

This commit is contained in:
Ilia Alshanetsky 2009-06-01 13:10:18 +00:00
parent 102f76b323
commit 083ed5b3e5

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