diff options
author | Michael Brown | 2007-07-10 07:31:11 +0200 |
---|---|---|
committer | Michael Brown | 2007-07-10 07:31:11 +0200 |
commit | b3e44a24b112e9d70786aee4cd8bf49b1c6d73b8 (patch) | |
tree | f95515f4bd1a48d939cba032ea966db2e52f744d /src/net/tcp/iscsi.c | |
parent | Unplug before sending close() message, to avoid screwing up interfaces (diff) | |
download | ipxe-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.c | 1 |
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 ); |