mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fixed bug #22529 (object_id parameter in all snmp*() functions broken.)
This commit is contained in:
parent
7fe8f6cf94
commit
6676e6f2e9
@ -342,7 +342,7 @@ static void php_snmp_internal(INTERNAL_FUNCTION_PARAMETERS, int st,
|
||||
if (st >= 3) { /* walk */
|
||||
rootlen = MAX_NAME_LEN;
|
||||
if (strlen(objid)) { /* on a walk, an empty string means top of tree - no error */
|
||||
if (read_objid(objid, root, &rootlen)) {
|
||||
if (snmp_parse_oid(objid, root, &rootlen)) {
|
||||
gotroot = 1;
|
||||
} else {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid object identifier: %s", objid);
|
||||
|
Loading…
Reference in New Issue
Block a user