Skip to content

Commit a443170

Browse files
author
lytboris
committed
revert r309111 (name_len was not a typo)
git-svn-id: http://svn.php.net/repository/php/php-src/php/php-src/trunk@309453 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent b6f6d4b commit a443170

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/snmp/snmp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ static void php_snmp_getvalue(struct variable_list *vars, zval *snmpval TSRMLS_D
601601
*buf = 0;
602602

603603
if (valueretrieval == SNMP_VALUE_LIBRARY) {
604-
SNMP_SNPRINT_VALUE(buf, buflen, vars->name, vars->val_len, vars);
604+
SNMP_SNPRINT_VALUE(buf, buflen, vars->name, vars->name_length, vars);
605605
ZVAL_STRING(snmpval, buf, 1);
606606
if(dbuf){ /* malloc was used to store value */
607607
efree(dbuf);
@@ -834,7 +834,7 @@ static void php_snmp_internal(INTERNAL_FUNCTION_PARAMETERS, int st,
834834
break;
835835
}
836836
SNMP_SNPRINT_OBJID(buf, sizeof(buf), vars->name, vars->name_length);
837-
SNMP_SNPRINT_VALUE(buf2, sizeof(buf2), vars->name, vars->val_len, vars);
837+
SNMP_SNPRINT_VALUE(buf2, sizeof(buf2), vars->name, vars->name_length, vars);
838838
php_snmp_error(getThis(), NULL TSRMLS_CC, PHP_SNMP_ERRNO_ERROR_IN_REPLY, "Error in packet at '%s': %s", buf, buf2);
839839
continue;
840840
}

0 commit comments

Comments
 (0)