From: Ilia Alshanetsky Date: Mon, 1 Jun 2009 13:11:09 +0000 (+0000) Subject: MFB: Fixed bug #48273 (snmp*_real_walk() returns SNMP errors as values). X-Git-Tag: php-5.4.0alpha1~191^2~3433 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5904ee8f8ee15954abf9e63473781d4a38304ba1;p=php MFB: Fixed bug #48273 (snmp*_real_walk() returns SNMP errors as values). --- diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 7a9d8eec79..3c49098726 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -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