From 77d096bdac59d6627785490aae71c9ddc9445807 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 24 Apr 2013 23:10:56 +0200 Subject: [PATCH] sierra: ensure error is set when !SELRAT response parser doesn't match --- plugins/sierra/mm-broadband-modem-sierra.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);