From 9e93e22482a0f418d48d7c3ecdaf38b75df0a775 Mon Sep 17 00:00:00 2001 From: Prathmesh Prabhu Date: Thu, 19 Jun 2014 11:20:02 -0700 Subject: [PATCH] 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. --- src/mm-bearer-mbim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));