[ZBX-2300] Mistake in DCsync_item Created: 2010 Apr 11  Updated: 2017 May 30  Resolved: 2010 Apr 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.8.2
Fix Version/s: 1.8.3

Type: Incident report Priority: Major
Reporter: Kirill Fateev Assignee: Alexander Vladishev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

in src/libs/zbxdbcache/dbconfig.c in function DCsync_items():

/* db items */
i = get_nearestindex(config->dbitems, sizeof(ZBX_DC_LOGITEM),
config->dbitems_num, itemid);

sizeof(ZBX_DC_LOGITEM) is incorrect and must be replaced with sizeof(ZBX_DC_DBITEM)



 Comments   
Comment by Kirill Fateev [ 2010 Apr 11 ]

[config->dbitems rows unsorted] ---> [get_nearestindex works incorrectly] ---> [in params field falls empty or incorrect string] ---> [db monitor items became unsupported] (as described in ZBX-1648)

please fix it in next release

Comment by Alexander Vladishev [ 2010 Apr 12 ]

Fixed in version pre-1.8.3, revision r11450.

Generated at Thu Apr 25 19:04:34 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.