summaryrefslogtreecommitdiffstats
path: root/src/net/tcp/iscsi.c
diff options
context:
space:
mode:
authorMichael Brown2007-07-10 07:31:11 +0200
committerMichael Brown2007-07-10 07:31:11 +0200
commitb3e44a24b112e9d70786aee4cd8bf49b1c6d73b8 (patch)
treef95515f4bd1a48d939cba032ea966db2e52f744d /src/net/tcp/iscsi.c
parentUnplug before sending close() message, to avoid screwing up interfaces (diff)
downloadipxe-b3e44a24b112e9d70786aee4cd8bf49b1c6d73b8.tar.gz
ipxe-b3e44a24b112e9d70786aee4cd8bf49b1c6d73b8.tar.xz
ipxe-b3e44a24b112e9d70786aee4cd8bf49b1c6d73b8.zip
May be required in some disconnect scenarios
Diffstat (limited to 'src/net/tcp/iscsi.c')
-rw-r--r--src/net/tcp/iscsi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/tcp/iscsi.c b/src/net/tcp/iscsi.c
index 4ce37513..273f0d68 100644
--- a/src/net/tcp/iscsi.c
+++ b/src/net/tcp/iscsi.c
@@ -142,6 +142,7 @@ static void iscsi_close_connection ( struct iscsi_session *iscsi, int rc ) {
/* Reset TX and RX state machines */
iscsi->tx_state = ISCSI_TX_IDLE;
iscsi->rx_state = ISCSI_RX_BHS;
+ iscsi->rx_offset = 0;
/* Free any temporary dynamically allocated memory */
chap_finish ( &iscsi->chap );