summaryrefslogtreecommitdiffstats
path: root/plugins/hso.c
diff options
context:
space:
mode:
authorNeil Jerram <neil@ossau.homelinux.net>2012-02-27 20:04:43 +0000
committerMarcel Holtmann <marcel@holtmann.org>2012-02-27 15:16:37 -0800
commitfb43a3274380a464dcceecba1d9d258f2bb21012 (patch)
tree7f6ab8a873cf96164e718dcb60292f3e935580bd /plugins/hso.c
parent8b3c9e38a57b8841c4e2aa0c3ae6bc9d6c7b66db (diff)
downloadofono-fb43a3274380a464dcceecba1d9d258f2bb21012.tar.bz2
hso: Don't access freed data, in hso_set_online
Diffstat (limited to 'plugins/hso.c')
-rw-r--r--plugins/hso.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/hso.c b/plugins/hso.c
index 497c64e7..249bb2ca 100644
--- a/plugins/hso.c
+++ b/plugins/hso.c
@@ -421,9 +421,9 @@ static void hso_set_online(struct ofono_modem *modem, ofono_bool_t online,
if (g_at_chat_send(chat, command, NULL, set_online_cb, cbd, g_free))
return;
- g_free(cbd);
-
CALLBACK_WITH_FAILURE(cb, cbd->data);
+
+ g_free(cbd);
}
static void hso_pre_sim(struct ofono_modem *modem)