diff options
author | David Ward <david.ward@ll.mit.edu> | 2015-09-09 18:54:53 -0400 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2015-09-10 13:03:47 +0200 |
commit | 6cf74ebfae1dccf807bb34d88f2cd024d4b14da7 (patch) | |
tree | 9f7b71df363c1c12986e94d1d661d90ce67f09f1 | |
parent | fd222fc1ee05c2c0c2c21bddec65b9b02f0bc718 (diff) | |
download | libmbim-6cf74ebfae1dccf807bb34d88f2cd024d4b14da7.tar.gz |
mbimcli: fix username/password checks with the '--connect' action
Fixes: 4e58451a744dbc3f086e9c1dd2d7469ff70d50ef ("mbimcli: add support for Basic Connect session IDs")
Signed-off-by: David Ward <david.ward@ll.mit.edu>
-rw-r--r-- | 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; } |