|
@@ -620,8 +620,11 @@ static int iscsi_target_handle_csg_one(struct iscsi_conn *conn, struct iscsi_log
|
|
|
login->req_buf,
|
|
|
payload_length,
|
|
|
conn);
|
|
|
- if (ret < 0)
|
|
|
+ if (ret < 0) {
|
|
|
+ iscsit_tx_login_rsp(conn, ISCSI_STATUS_CLS_INITIATOR_ERR,
|
|
|
+ ISCSI_LOGIN_STATUS_INIT_ERR);
|
|
|
return -1;
|
|
|
+ }
|
|
|
|
|
|
if (login->first_request)
|
|
|
if (iscsi_target_check_first_request(conn, login) < 0)
|
|
@@ -636,8 +639,11 @@ static int iscsi_target_handle_csg_one(struct iscsi_conn *conn, struct iscsi_log
|
|
|
login->rsp_buf,
|
|
|
&login->rsp_length,
|
|
|
conn->param_list);
|
|
|
- if (ret < 0)
|
|
|
+ if (ret < 0) {
|
|
|
+ iscsit_tx_login_rsp(conn, ISCSI_STATUS_CLS_INITIATOR_ERR,
|
|
|
+ ISCSI_LOGIN_STATUS_INIT_ERR);
|
|
|
return -1;
|
|
|
+ }
|
|
|
|
|
|
if (!login->auth_complete &&
|
|
|
ISCSI_TPG_ATTRIB(ISCSI_TPG_C(conn))->authentication) {
|