diff options
author | Prathmesh Prabhu <pprabhu@chromium.org> | 2014-06-19 11:20:02 -0700 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2014-06-20 12:54:39 -0500 |
commit | 9e93e22482a0f418d48d7c3ecdaf38b75df0a775 (patch) | |
tree | 93e3b13ceedda1b4539c5c199a0244e2ae7a241d | |
parent | 699a25b802f6e18c5c00e4573ac5e3febe9b0093 (diff) | |
download | ModemManager-9e93e22482a0f418d48d7c3ecdaf38b75df0a775.tar.gz |
bearer-mbim: fix disconnect error handling case split
The first case, with no error, needs to check that there was no original error.
Currently, if an error occurs and the resulting NwError is parsed correctly, the
case split treats it as a no-error case.
-rw-r--r-- | src/mm-bearer-mbim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-bearer-mbim.c b/src/mm-bearer-mbim.c index 55305bb8a..643964dda 100644 --- a/src/mm-bearer-mbim.c +++ b/src/mm-bearer-mbim.c @@ -980,7 +980,7 @@ disconnect_set_ready (MbimDevice *device, } /* Now handle different response / error cases */ - if (parsed_result) { + if (result && parsed_result) { mm_dbg ("Session ID '%u': %s", session_id, mbim_activation_state_get_string (activation_state)); |