If we have to retry an open session request, we hit an assert
that assumes we can only be in LANPLUS_STATE_PRESESSION state.

Add LANPLUS_STATE_OPEN_SESSION_SENT so we don't abort if
we retry.
---
 src/plugins/lanplus/lanplus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lanplus/lanplus.c b/src/plugins/lanplus/lanplus.c
index 9ce9945..23ded05 100644
--- a/src/plugins/lanplus/lanplus.c
+++ b/src/plugins/lanplus/lanplus.c
@@ -2174,7 +2174,7 @@ ipmi_lanplus_send_payload(
                        else if (payload->payload_type == 
IPMI_PAYLOAD_TYPE_RMCP_OPEN_REQUEST)
                        {
                                lprintf(LOG_DEBUG, ">> SENDING AN OPEN SESSION 
REQUEST\n");
-                               assert(session->v2_data.session_state == 
LANPLUS_STATE_PRESESSION);
+                               assert(session->v2_data.session_state == 
LANPLUS_STATE_PRESESSION || session->v2_data.session_state == 
LANPLUS_STATE_OPEN_SESSION_SENT);
 
                                ipmi_lanplus_build_v2x_msg(intf,        /* in  
*/
                                                                payload,     /* 
in  */
-- 
1.8.3.2


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to