mirror of
https://github.com/php/php-src.git
synced 2026-03-27 17:52:16 +01:00
MFB: Fixed bug #48359 (Script hangs on snmprealwalk if OID is not
increasing)
This commit is contained in:
3
NEWS
3
NEWS
@@ -10,9 +10,12 @@ PHP NEWS
|
||||
arguments). (Arnaud)
|
||||
- Fixed bug #48378 (exif_read_data() segfaults on certain corrupted .jpeg
|
||||
files). (Pierre)
|
||||
- Fixed bug #48359 (Script hangs on snmprealwalk if OID is not
|
||||
increasing). (Ilia, simonov at gmail dot com)
|
||||
- Fixed bug #42143 (The constant NAN is reported as 0 on Windows)
|
||||
(Kanwaljeet Singla, Venkat Raman Don)
|
||||
|
||||
|
||||
27 May 2009, PHP 5.2.10RC1
|
||||
- Updated timezone database to version 2009.8 (2009h) (Derick)
|
||||
|
||||
|
||||
@@ -490,9 +490,14 @@ retry:
|
||||
if (st >= SNMP_CMD_WALK && st != SNMP_CMD_SET) {
|
||||
if (vars->type != SNMP_ENDOFMIBVIEW &&
|
||||
vars->type != SNMP_NOSUCHOBJECT && vars->type != SNMP_NOSUCHINSTANCE) {
|
||||
memmove((char *)name, (char *)vars->name,vars->name_length * sizeof(oid));
|
||||
name_length = vars->name_length;
|
||||
keepwalking = 1;
|
||||
if (snmp_oid_compare(name, name_length, vars->name, vars->name_length) >= 0) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error: OID not increasing: %s",name);
|
||||
keepwalking = 0;
|
||||
} else {
|
||||
memmove((char *)name, (char *)vars->name,vars->name_length * sizeof(oid));
|
||||
name_length = vars->name_length;
|
||||
keepwalking = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user