mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51:27 +00:00
iscsi-scstd: Avoid that Coverity complains about a use-after-free
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6374 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -761,10 +761,10 @@ static void event_loop(void)
|
||||
*/
|
||||
if (!sess && conn->sessions_count_incremented)
|
||||
conn->target->sessions_count--;
|
||||
conn_free(conn);
|
||||
log_debug(1, "conn %p freed (sess %p, empty %d)",
|
||||
conn, sess,
|
||||
sess ? list_empty(&sess->conn_list) : -1);
|
||||
conn_free(conn);
|
||||
if (sess && list_empty(&sess->conn_list))
|
||||
session_free(sess);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user