aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-04-24 23:10:56 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-04-25 09:36:51 +0200
commit77d096bdac59d6627785490aae71c9ddc9445807 (patch)
treed7bfbe69b152d677658487972cd2d611c7c32000
parent52fd67e36591588f76c7d8e1f0a115ab1a1db74c (diff)
sierra: ensure error is set when !SELRAT response parser doesn't match
-rw-r--r--plugins/sierra/mm-broadband-modem-sierra.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/sierra/mm-broadband-modem-sierra.c b/plugins/sierra/mm-broadband-modem-sierra.c
index 5c894f64..301f41eb 100644
--- a/plugins/sierra/mm-broadband-modem-sierra.c
+++ b/plugins/sierra/mm-broadband-modem-sierra.c
@@ -623,7 +623,11 @@ selrat_query_ready (MMBaseModem *self,
MM_CORE_ERROR_FAILED,
"Failed to parse the allowed mode response: '%s'",
response);
- }
+ } else if (!error)
+ error = g_error_new (MM_CORE_ERROR,
+ MM_CORE_ERROR_FAILED,
+ "Could not parse allowed mode response: Response didn't match: '%s'",
+ response);
if (match_info)
g_match_info_free (match_info);