login.c: drop login PDUs on reconnect

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2015-02-23 20:29:25 -08:00
parent 44c5089a21
commit 0a9bd03b2d

View File

@@ -734,7 +734,7 @@ iscsi_login_async(struct iscsi_context *iscsi, iscsi_command_cb cb,
ISCSI_PDU_LOGIN_REQUEST, ISCSI_PDU_LOGIN_REQUEST,
ISCSI_PDU_LOGIN_RESPONSE, ISCSI_PDU_LOGIN_RESPONSE,
iscsi->itt, iscsi->itt,
0); ISCSI_PDU_DROP_ON_RECONNECT);
if (pdu == NULL) { if (pdu == NULL) {
iscsi_set_error(iscsi, "Out-of-memory: Failed to allocate " iscsi_set_error(iscsi, "Out-of-memory: Failed to allocate "
"login pdu."); "login pdu.");
@@ -1127,7 +1127,7 @@ iscsi_logout_async_internal(struct iscsi_context *iscsi, iscsi_command_cb cb,
ISCSI_PDU_LOGOUT_REQUEST, ISCSI_PDU_LOGOUT_REQUEST,
ISCSI_PDU_LOGOUT_RESPONSE, ISCSI_PDU_LOGOUT_RESPONSE,
iscsi_itt_post_increment(iscsi), iscsi_itt_post_increment(iscsi),
0); ISCSI_PDU_DROP_ON_RECONNECT);
if (pdu == NULL) { if (pdu == NULL) {
iscsi_set_error(iscsi, "Out-of-memory: Failed to allocate " iscsi_set_error(iscsi, "Out-of-memory: Failed to allocate "
"logout pdu."); "logout pdu.");