From: Adheer Chandravanshi <>

Fix to correctly read username_in and password_in sysfs params for
flashnode session.

Signed-off-by: Adheer Chandravanshi <>
Signed-off-by: Vikas Chaudhary <>
 usr/iscsi_sysfs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr/iscsi_sysfs.c b/usr/iscsi_sysfs.c
index 56cb90c..04c3673 100644
--- a/usr/iscsi_sysfs.c
+++ b/usr/iscsi_sysfs.c
@@ -601,12 +601,12 @@ int iscsi_sysfs_get_flashnode_info(struct flashnode_rec 
        sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "username",
                      (fnode->sess).username, sizeof((fnode->sess).username));
        sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "username_in",
-                     (fnode->sess).username,
+                     (fnode->sess).username_in,
        sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "password",
                      (fnode->sess).password, sizeof((fnode->sess).password));
        sysfs_get_str(sess_id, ISCSI_FLASHNODE_SUBSYS, "password_in",
-                     (fnode->sess).password,
+                     (fnode->sess).password_in,
        sysfs_get_uint(conn_id, ISCSI_FLASHNODE_SUBSYS, "statsn",

You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to