mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix SNMP
This one had objid_query->array_output = ( (st & SNMP_CMD_SET) ? false : true ); initially which means that if it was equal to 0 it would be equal to true.
This commit is contained in:
parent
d842bc7e22
commit
dc402cb0fc
1 changed files with 1 additions and 1 deletions
|
@ -695,7 +695,7 @@ static bool php_snmp_parse_oid(
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
objid_query->vars = (snmpobjarg *)safe_emalloc(sizeof(snmpobjarg), zend_hash_num_elements(oid_ht), 0);
|
objid_query->vars = (snmpobjarg *)safe_emalloc(sizeof(snmpobjarg), zend_hash_num_elements(oid_ht), 0);
|
||||||
objid_query->array_output = (st & SNMP_CMD_SET) != 0;
|
objid_query->array_output = (st & SNMP_CMD_SET) == 0;
|
||||||
ZEND_HASH_FOREACH_VAL(oid_ht, tmp_oid) {
|
ZEND_HASH_FOREACH_VAL(oid_ht, tmp_oid) {
|
||||||
convert_to_string(tmp_oid);
|
convert_to_string(tmp_oid);
|
||||||
objid_query->vars[objid_query->count].oid = Z_STRVAL_P(tmp_oid);
|
objid_query->vars[objid_query->count].oid = Z_STRVAL_P(tmp_oid);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue