[PATCH 1/6] mbimcli, phonebook: add missing return statement in set_phonebook_delete_ready
Ben Chan
benchan at chromium.org
Thu Jul 27 01:44:48 UTC 2017
When mbim_message_phonebook_delete_response_parse fails,
set_phonebook_delete_ready should shutdown with a failure status and
return.
---
src/mbimcli/mbimcli-phonebook.c | 2 ++
1 file changed, 2 insertions(+)
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");
--
2.14.0.rc0.400.g1c36432dff-goog
More information about the libmbim-devel
mailing list