All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] connman: Initialize req->path to NULL to avoid crash on g_free
@ 2011-07-29 13:49 Guillaume Zajac
  2011-07-28  5:15 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Guillaume Zajac @ 2011-07-29 13:49 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 530 bytes --]

---
 plugins/connman.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/plugins/connman.c b/plugins/connman.c
index bb29cd5..875dd2d 100644
--- a/plugins/connman.c
+++ b/plugins/connman.c
@@ -264,6 +264,7 @@ static int connman_request(ofono_private_network_cb_t cb, void *data)
 	req->data = data;
 	req->uid = id;
 	req->redundant = FALSE;
+	req->path = NULL;
 
 	dbus_pending_call_set_notify(call, request_reply, req, NULL);
 	g_hash_table_insert(requests, &req->uid, req);
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-29 13:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-29 13:49 [PATCH] connman: Initialize req->path to NULL to avoid crash on g_free Guillaume Zajac
2011-07-28  5:15 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.