aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-03-21 17:47:15 -0700
committerDan Williams <dcbw@redhat.com>2010-03-21 17:47:15 -0700
commit96f5400cc92589f6419b9dc961d7c3cff97f7f2a (patch)
tree8bdebdbad4f17b2806fd423b7483bb0dad92d0c7
parentf3e660444c70ea35bdb7f6358301450ec15d0140 (diff)
core: fix error when unescaping QCDM packet fails
-rw-r--r--src/mm-qcdm-serial-port.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mm-qcdm-serial-port.c b/src/mm-qcdm-serial-port.c
index e2ca156e..a370fd06 100644
--- a/src/mm-qcdm-serial-port.c
+++ b/src/mm-qcdm-serial-port.c
@@ -83,7 +83,9 @@ handle_response (MMSerialPort *port,
&used,
&more);
if (!success) {
- g_set_error_literal (&dm_error, 0, 0, "Failed to unescape QCDM packet.");
+ g_set_error_literal (&dm_error,
+ MM_MODEM_ERROR, MM_MODEM_ERROR_GENERAL,
+ "Failed to unescape QCDM packet.");
g_byte_array_free (unescaped, TRUE);
unescaped = NULL;
} else if (more) {