summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-07-16 04:54:40 +0000
committerfoobar <sniper@php.net>2003-07-16 04:54:40 +0000
commit6676e6f2e98f6431c08ea19b7b0cbc3a472110b1 (patch)
tree12e8893d5b2cb3316c62c57423787114969c4620
parent7fe8f6cf94309c1a90e45b0e02bc5a51a640a42f (diff)
downloadphp-git-6676e6f2e98f6431c08ea19b7b0cbc3a472110b1.tar.gz
Fixed bug #22529 (object_id parameter in all snmp*() functions broken.)
-rw-r--r--ext/snmp/snmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c
index 4f2c2c88ff..14f2517f47 100644
--- a/ext/snmp/snmp.c
+++ b/ext/snmp/snmp.c
@@ -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);