Update what we try to negotiate as header digest when we receive

a reply back from the target.
This commit is contained in:
Ronnie Sahlberg
2011-01-01 11:38:06 +11:00
parent e004161c1f
commit 172dbb6846

View File

@@ -735,9 +735,13 @@ iscsi_process_login_reply(struct iscsi_context *iscsi, struct iscsi_pdu *pdu,
if (!strcmp((char *)ptr + 13, "CRC32C")) {
iscsi->header_digest
= ISCSI_HEADER_DIGEST_CRC32C;
iscsi->want_header_digest
= ISCSI_HEADER_DIGEST_CRC32C;
} else {
iscsi->header_digest
= ISCSI_HEADER_DIGEST_NONE;
iscsi->want_header_digest
= ISCSI_HEADER_DIGEST_NONE;
}
}