Fix check for no entries in SEL

This commit is contained in:
Jon Cassorla 2004-01-21 03:00:14 +00:00
parent 8efaddec02
commit 9e08347965

View File

@ -370,7 +370,7 @@ ipmi_sel_list_entries(struct ipmi_intf * intf)
if (verbose > 2)
printbuf(rsp->data, rsp->data_len, "sel_info");
if (!rsp->data[1]) {
if (!rsp->data[1] && !rsp->data[2]) {
printf("SEL has no entries\n");
return;
}