The function 'ipmi_sensor_find_id' is not working correctly because of result code check in function 'sensor_search_cmp'. As 'ipmi_sensor_get_id' returns the length of the ID, it is no error, when the return code is >0.
Signed-off-by: Oliver Weber <[email protected]> --- --- 2.0.16_orig/lib/sensor.c 2009-05-15 09:37:14.000000000 +0200 +++ 2.0.16/lib/sensor.c 2009-05-08 11:13:11.000000000 +0200 @@ -433,7 +433,7 @@ sensor_search_cmp(ipmi_entity_t *entity, int rv; rv = ipmi_sensor_get_id(sensor, id, 33); - if (rv) + if (rv <= 0) return; if (strcmp(info->id_name, id) == 0) { info->id = ipmi_sensor_convert_to_id(sensor); ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Openipmi-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openipmi-developer
