iliaa           Mon Jun  1 13:10:18 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/snmp   snmp.c 
  Log:
  Fixed bug #48273 (snmp*_real_walk() returns SNMP errors as values)
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/snmp/snmp.c?r1=1.106.2.2.2.5.2.12&r2=1.106.2.2.2.5.2.13&diff_format=u
Index: php-src/ext/snmp/snmp.c
diff -u php-src/ext/snmp/snmp.c:1.106.2.2.2.5.2.12 
php-src/ext/snmp/snmp.c:1.106.2.2.2.5.2.13
--- php-src/ext/snmp/snmp.c:1.106.2.2.2.5.2.12  Sun May 31 14:11:04 2009
+++ php-src/ext/snmp/snmp.c     Mon Jun  1 13:10:18 2009
@@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: snmp.c,v 1.106.2.2.2.5.2.12 2009/05/31 14:11:04 iliaa Exp $ */
+/* $Id: snmp.c,v 1.106.2.2.2.5.2.13 2009/06/01 13:10:18 iliaa Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -666,7 +666,7 @@
                                                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



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to