ID:391 - changing data_len from 17 to 16 according to ipmi spec 22.29, first byte is completion code

This commit is contained in:
Alexander Rube 2015-09-10 11:53:22 +02:00 committed by Zdenek Styblik
parent a98eedb272
commit 3412d86143

View File

@ -123,7 +123,7 @@ _ipmi_get_user_name(struct ipmi_intf *intf, struct user_name_t *user_name_ptr)
return (-1);
} else if (rsp->ccode > 0) {
return rsp->ccode;
} else if (rsp->data_len != 17) {
} else if (rsp->data_len != 16) {
return (-2);
}
memset(user_name_ptr->user_name, '\0', 17);