Browse Source

Fixed SNMP_ERR_TOOBIG handling for bulk walk operations

PHP-5.4.24
Boris Lytochkin 12 years ago
parent
commit
bb51d0e4c0
  1. 3
      NEWS
  2. 6
      ext/snmp/snmp.c

3
NEWS

@ -34,6 +34,9 @@ PHP NEWS
- ZIP:
. Fixed Bug #66321 (ZipArchive::open() ze_obj->filename_len not real). (Remi)
- SNMP:
. Fixed SNMP_ERR_TOOBIG handling for bulk walk operations (Boris Lytochkin)
12 Dec 2013, PHP 5.4.23
- Core:

6
ext/snmp/snmp.c

@ -896,6 +896,12 @@ retry:
keepwalking = 1;
}
} else {
if (st & SNMP_CMD_WALK && response->errstat == SNMP_ERR_TOOBIG && objid_query->max_repetitions > 1) { /* Answer will not fit into single packet */
objid_query->max_repetitions /= 2;
snmp_free_pdu(response);
keepwalking = 1;
continue;
}
if (!(st & SNMP_CMD_WALK) || response->errstat != SNMP_ERR_NOSUCHNAME || Z_TYPE_P(return_value) == IS_BOOL) {
for ( count=1, vars = response->variables;
vars && count != response->errindex;

Loading…
Cancel
Save