ID: 310 - lanplus retry regression

The lanplus driver for has a bug in ipmi_lanplus_open_session(). There is
an extra and undesired check for a null response (timeout). As a result, it
returns 1 to the caller. The result of this is an occasional assertion. Commit
mends this.

Commit for Pat Donlin
This commit is contained in:
Zdenek Styblik 2014-04-25 20:40:36 +02:00
parent 9d88837ef3
commit 4f0967779e

View File

@ -2882,17 +2882,13 @@ ipmi_lanplus_open_session(struct ipmi_intf * intf)
free(msg);
msg = NULL;
if (!rsp) {
lprintf(LOG_WARNING, "Error sending open session message.");
return -1;
}
if (verbose)
lanplus_dump_open_session_response(rsp);
if (rsp == NULL ) {
lprintf(LOG_DEBUG, "Timeout in open session response message.");
return 2;
}
if (verbose)
lanplus_dump_open_session_response(rsp);
if (rsp->payload.open_session_response.rakp_return_code !=
IPMI_RAKP_STATUS_NO_ERRORS)
{