summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-07-26 18:44:48 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-07-27 10:38:51 +0200
commit8abc5808262cc3048983457d367533c786a19656 (patch)
tree6704826dc1afdf17e2572ffcdc2d4b81ea6186e6
parent752855389c8fc7f23e74f2e9e4224dee4e28362d (diff)
mbimcli,phonebook: add missing return statement in set_phonebook_delete_ready
When mbim_message_phonebook_delete_response_parse fails, set_phonebook_delete_ready should shutdown with a failure status and return.
-rw-r--r--src/mbimcli/mbimcli-phonebook.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbimcli/mbimcli-phonebook.c b/src/mbimcli/mbimcli-phonebook.c
index 2fa46a6..fe3de2c 100644
--- a/src/mbimcli/mbimcli-phonebook.c
+++ b/src/mbimcli/mbimcli-phonebook.c
@@ -238,7 +238,9 @@ set_phonebook_delete_ready (MbimDevice *device,
if (!mbim_message_phonebook_delete_response_parse (response, &error)) {
g_printerr ("error: couldn't parse response message: %s\n", error->message);
g_error_free (error);
+ mbim_message_unref (response);
shutdown (FALSE);
+ return;
}
g_print ("Phonebook entry/entries successfully deleted");