session: fix ho cleanup on active and passive close
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I9e7011ff45f14e17fc0d0d63800184f404c29093
This commit is contained in:

committed by
Dave Wallace

parent
518bcc1028
commit
7080294116
@ -1659,8 +1659,10 @@ session_transport_close (session_t * s)
|
|||||||
{
|
{
|
||||||
if (s->session_state == SESSION_STATE_TRANSPORT_CLOSED)
|
if (s->session_state == SESSION_STATE_TRANSPORT_CLOSED)
|
||||||
session_set_state (s, SESSION_STATE_CLOSED);
|
session_set_state (s, SESSION_STATE_CLOSED);
|
||||||
/* If transport is already deleted, just free the session */
|
/* If transport is already deleted, just free the session. Half-opens
|
||||||
else if (s->session_state >= SESSION_STATE_TRANSPORT_DELETED)
|
* expected to be already cleaning up at this point */
|
||||||
|
else if (s->session_state >= SESSION_STATE_TRANSPORT_DELETED &&
|
||||||
|
!(s->flags & SESSION_F_HALF_OPEN))
|
||||||
session_program_cleanup (s);
|
session_program_cleanup (s);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user