[PATCH] mbimcli: fix username/password checks with the '--connect' action

David Ward david.ward at ll.mit.edu
Wed Sep 9 15:54:53 PDT 2015


Fixes: 4e58451a744dbc3f086e9c1dd2d7469ff70d50ef ("mbimcli: add support for Basic Connect session IDs")
Signed-off-by: David Ward <david.ward at ll.mit.edu>
---
 src/mbimcli/mbimcli-basic-connect.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mbimcli/mbimcli-basic-connect.c b/src/mbimcli/mbimcli-basic-connect.c
index 9b74677..efdd8be 100644
--- a/src/mbimcli/mbimcli-basic-connect.c
+++ b/src/mbimcli/mbimcli-basic-connect.c
@@ -1004,12 +1004,12 @@ set_connect_activate_parse (const gchar       *str,
     }
 
     if (props.auth_protocol == MBIM_AUTH_PROTOCOL_NONE) {
-        if (username || password) {
+        if (props.username || props.password) {
             g_printerr ("error: username or password requires an auth protocol\n");
             goto error;
         }
     } else {
-        if (!username) {
+        if (!props.username) {
             g_printerr ("error: auth protocol requires a username\n");
             goto error;
         }
-- 
1.7.1



More information about the libmbim-devel mailing list