]> granicus.if.org Git - php/commitdiff
Fixed bug #22529 (object_id parameter in all snmp*() functions broken.)
authorfoobar <sniper@php.net>
Wed, 16 Jul 2003 04:54:40 +0000 (04:54 +0000)
committerfoobar <sniper@php.net>
Wed, 16 Jul 2003 04:54:40 +0000 (04:54 +0000)
ext/snmp/snmp.c

index 4f2c2c88ffc9eb93b32f7fccf15119adedf167af..14f2517f4705617940ca62ed91259d0f669e9107 100644 (file)
@@ -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);