The function 'ipmi_control_find_id' is not working correctly because of
result code check in function 'control_search_cmp'. As
'ipmi_control_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/control.c    2009-05-15 09:37:14.000000000 +0200
+++ 2.0.16/lib/control.c    2009-05-08 11:11:05.000000000 +0200
@@ -320,7 +320,7 @@ control_search_cmp(ipmi_entity_t  *entit
     int                rv;
 
     rv = ipmi_control_get_id(control, id, 33);
-    if (rv)
+    if (rv <= 0)
     return;
     if (strcmp(info->id_name, id) == 0) {
     info->id = ipmi_control_convert_to_id(control);


------------------------------------------------------------------------------
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

Reply via email to