From 172dbb6846ca0ad3553349e4da38bf6e4ab347a5 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sat, 1 Jan 2011 11:38:06 +1100 Subject: [PATCH] Update what we try to negotiate as header digest when we receive a reply back from the target. --- lib/login.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/login.c b/lib/login.c index af2d1cb..137e011 100644 --- a/lib/login.c +++ b/lib/login.c @@ -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; } }