mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Correction to r268356: collide only sessions to the same target.
This commit is contained in:
parent
2c6c9e47b2
commit
99f8c067e6
1 changed files with 2 additions and 0 deletions
|
|
@ -1507,6 +1507,8 @@ restart:
|
|||
mtx_lock(&softc->lock);
|
||||
TAILQ_FOREACH(cs2, &softc->sessions, cs_next) {
|
||||
if (cs2 != cs && cs2->cs_tasks_aborted == false &&
|
||||
cs->cs_target == cs2->cs_target &&
|
||||
cs->cs_portal_group_tag == cs2->cs_portal_group_tag &&
|
||||
strcmp(cs->cs_initiator_id, cs2->cs_initiator_id) == 0) {
|
||||
cfiscsi_session_terminate(cs2);
|
||||
mtx_unlock(&softc->lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue