Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 864e504a authored by Varun Prakash's avatar Varun Prakash Committed by Nicholas Bellinger
Browse files

iscsi-target: use conn_transport->transport_type in text rsp



Use conn_transport->transport_type instead of
ISCSI_TCP to build text response.

Signed-off-by: default avatarVarun Prakash <varun@chelsio.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent c0b7373b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3513,7 +3513,8 @@ static int iscsit_send_text_rsp(
	struct iscsi_text_rsp *hdr = (struct iscsi_text_rsp *)cmd->pdu;
	int text_length;

	text_length = iscsit_build_text_rsp(cmd, conn, hdr, ISCSI_TCP);
	text_length = iscsit_build_text_rsp(cmd, conn, hdr,
				conn->conn_transport->transport_type);
	if (text_length < 0)
		return text_length;