The switch statement was falling through after
the server name was set, into the "version" code. So
setting the server name just printed the version and
exited. Added a break statement.
---
 utils/open-isns/isnsadm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utils/open-isns/isnsadm.c b/utils/open-isns/isnsadm.c
index c170595372da..5b14f82b8ce9 100644
--- a/utils/open-isns/isnsadm.c
+++ b/utils/open-isns/isnsadm.c
@@ -141,6 +141,7 @@ main(int argc, char **argv)
 
                case 's':
                        opt_servername = optarg;
+                       break;
 
                case 'V':
                        printf("Open-iSNS version %s\n"
-- 
1.8.5.2

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to