summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorWenchao Hao <haowenchao@huawei.com>2022-01-10 12:52:30 +0800
committerWenchao Hao <haowenchao@huawei.com>2022-01-10 12:57:29 +0800
commite90de9b1b465c598c79605b969d518364440e9c7 (patch)
tree4f34752c96036d754abb7bd0c7fe80683d561acb /usr
parentdb47bcde2e801f00bf0cbff50f5b8fffdfc18de4 (diff)
downloadopen-iscsi-e90de9b1b465c598c79605b969d518364440e9c7.tar.gz
iscsi_err: Add iscsid request timed out error messages
Commit 67eb8b2 added error code ISCSI_ERR_REQ_TIMEOUT. While did not update array iscsi_error_list which referenced in iscsi_err_to_str(). Which would access a invalid memory with when variable of iscsi_err_to_str() is ISCSI_ERR_REQ_TIMEOUT. Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
Diffstat (limited to 'usr')
-rw-r--r--usr/iscsi_err.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/iscsi_err.c b/usr/iscsi_err.c
index 4a057d5..b1cfa7a 100644
--- a/usr/iscsi_err.c
+++ b/usr/iscsi_err.c
@@ -57,6 +57,7 @@ static char *iscsi_err_msgs[] = {
/* 30 */ "unknown discovery type",
/* 31 */ "child process terminated",
/* 32 */ "target likely not connected",
+ /* 33 */ "iscsid request timed out",
};
char *iscsi_err_to_str(int err)