Fixes to coverity defects 85250 and 85251.
This commit is contained in:
@ -577,8 +577,7 @@ SESSION* ses = my_session->branch_session;
|
|||||||
/** This indicates that branch session is not available anymore */
|
/** This indicates that branch session is not available anymore */
|
||||||
my_session->branch_session = NULL;
|
my_session->branch_session = NULL;
|
||||||
}
|
}
|
||||||
|
else if(ses->state == SESSION_STATE_STOPPING)
|
||||||
if(ses->state == SESSION_STATE_STOPPING)
|
|
||||||
{
|
{
|
||||||
orphan_session_t* orphan;
|
orphan_session_t* orphan;
|
||||||
if((orphan = malloc(sizeof(orphan_session_t))) == NULL)
|
if((orphan = malloc(sizeof(orphan_session_t))) == NULL)
|
||||||
@ -622,11 +621,14 @@ SESSION* ses = my_session->branch_session;
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
tmp = allOrphans;
|
tmp = allOrphans;
|
||||||
while(tmp && tmp->next != ptr)
|
while(tmp && tmp->next != ptr)
|
||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
tmp->next = ptr->next;
|
if(tmp)
|
||||||
tmp = ptr;
|
{
|
||||||
|
tmp->next = ptr->next;
|
||||||
|
tmp = ptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef SS_DEBUG
|
#ifdef SS_DEBUG
|
||||||
|
|||||||
Reference in New Issue
Block a user