summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/discovery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/discovery.c b/usr/discovery.c
index 2147deb..199c160 100644
--- a/usr/discovery.c
+++ b/usr/discovery.c
@@ -1355,6 +1355,7 @@ reconnect:
if (--session->reopen_cnt < 0) {
log_error("connection login retries (reopen_max) %d exceeded",
config->reopen_max);
+ rc = ISCSI_ERR_PDU_TIMEOUT;
goto login_failed;
}