]> granicus.if.org Git - php/commitdiff
Fixed bug #48273 (snmp*_real_walk() returns SNMP errors as values).
authorIlia Alshanetsky <iliaa@php.net>
Mon, 1 Jun 2009 13:10:57 +0000 (13:10 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 1 Jun 2009 13:10:57 +0000 (13:10 +0000)
NEWS
ext/snmp/snmp.c

diff --git a/NEWS b/NEWS
index 92c2e04e7d92dfeb6ff13dcfd5615e2a5c59f6c0..0c1975b09967b92f2492ae75cf242a48d8a9043c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,8 @@ PHP                                                                        NEWS
   files). (Pierre)
 - Fixed bug #48359 (Script hangs on snmprealwalk if OID is not
   increasing). (Ilia, simonov at gmail dot com)
+- Fixed bug #48273 (snmp*_real_walk() returns SNMP errors as values).
+  (Ilia, lytboris at gmail dot com)
 - Fixed bug #48247 (Crash on errors during startup). (Stas)
 - Fixed bug #42143 (The constant NAN is reported as 0 on Windows)
   (Kanwaljeet Singla, Venkat Raman Don)
index 0850f86ceca43c013b590be01761c1030f15c90d..0689e5270f51b42c36698f99184a73b75d724602 100644 (file)
@@ -479,7 +479,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