summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrathmesh Prabhu <pprabhu@chromium.org>2014-06-19 11:20:02 -0700
committerDan Williams <dcbw@redhat.com>2014-06-20 12:54:39 -0500
commit9e93e22482a0f418d48d7c3ecdaf38b75df0a775 (patch)
tree93e3b13ceedda1b4539c5c199a0244e2ae7a241d
parent699a25b802f6e18c5c00e4573ac5e3febe9b0093 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-bearer-mbim.c b/src/mm-bearer-mbim.c
index 55305bb8..643964dd 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));