php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #51336
Patch snmpv1-realwalk-end-of-OID-bug revision 2010-03-20 10:59 UTC by lytboris at gmail dot com
revision 2010-03-20 10:57 UTC by lytboris at gmail dot com
revision 2010-03-20 10:53 UTC by lytboris at gmail dot com

Patch snmpv1-realwalk-end-of-OID-bug for SNMP related Bug #51336

Patch version 2010-03-20 10:59 UTC

Return to Bug #51336 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions: 2010-03-20 10:59 UTC | 2010-03-20 10:57 UTC | 2010-03-20 10:53 UTC

Developer: lytboris@gmail.com


 --- ext/snmp/snmp.c	2009-10-25 23:17:04.000000000 +0300
 +++ ext/snmp/snmp.c	2010-03-20 13:33:46.000000000 +0300
 --- ext/snmp/snmp.c.orig	2009-10-25 23:17:04.000000000 +0300
 +++ ext/snmp/snmp.c		2010-03-20 13:54:41.000000000 +0300
  @@ -502,7 +502,7 @@
   					}
   				}	
   			} else {
  -				if (st != SNMP_CMD_WALK || response->errstat != SNMP_ERR_NOSUCHNAME) {
 +				if (st < SNMP_CMD_WALK || response->errstat != SNMP_ERR_NOSUCHNAME) {
 +				if ((st != SNMP_CMD_WALK && st != SNMP_CMD_REALWALK) || response->errstat != SNMP_ERR_NOSUCHNAME) {
   					php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error in packet: %s", snmp_errstring(response->errstat));
   					if (response->errstat == SNMP_ERR_NOSUCHNAME) {
   						for (count=1, vars = response->variables; vars && count != response->errindex;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC