From: Adheer Chandravanshi <[email protected]>

Signed-off-by: Adheer Chandravanshi <[email protected]>
Signed-off-by: Vikas Chaudhary <[email protected]>
---
 usr/iscsiadm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c
index 5a18522..f87f48c 100644
--- a/usr/iscsiadm.c
+++ b/usr/iscsiadm.c
@@ -3016,7 +3016,7 @@ main(int argc, char **argv)
                if (sub_mode != -1) {
                        switch (sub_mode) {
                        case MODE_CHAP:
-                               if (!op || !host_no) {
+                               if (!op || (host_no == 0xffffffff)) {
                                        log_error("CHAP mode requires host "
                                                "no and valid operation");
                                        rc = ISCSI_ERR_INVAL;
@@ -3026,7 +3026,7 @@ main(int argc, char **argv)
                                                       value);
                                break;
                        case MODE_FLASHNODE:
-                               if (!host_no) {
+                               if (host_no == 0xffffffff) {
                                        log_error("FLASHNODE mode requires host 
no");
                                        rc = ISCSI_ERR_INVAL;
                                        break;
-- 
1.8.2.GIT

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/open-iscsi?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to