summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/connman/connman-gnome
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-04-16 22:37:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-16 22:53:00 +0100
commita5afc58319d3c7e082a090f5fad7f89bd6e588c9 (patch)
tree3d4b295eb420a7cd5b0bcad0e8d2049b784ef4b8 /meta/recipes-connectivity/connman/connman-gnome
parentb6cbf1e48c6ba3a0353f4ee71c43292587210ca5 (diff)
downloadpoky-a5afc58319d3c7e082a090f5fad7f89bd6e588c9.tar.gz
connman-gnome: fix segfault on connect
Fixes a segfault in the properties application when connecting to a WiFi service succeeds. (From OE-Core rev: 767ec69e6ca633e5bde604241a598147075b1ac0) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/connman/connman-gnome')
-rw-r--r--meta/recipes-connectivity/connman/connman-gnome/0007-connman-gnome-fix-segfault-due-to-unchecked-null-val.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/connman/connman-gnome/0007-connman-gnome-fix-segfault-due-to-unchecked-null-val.patch b/meta/recipes-connectivity/connman/connman-gnome/0007-connman-gnome-fix-segfault-due-to-unchecked-null-val.patch
new file mode 100644
index 0000000000..3e054ba7af
--- /dev/null
+++ b/meta/recipes-connectivity/connman/connman-gnome/0007-connman-gnome-fix-segfault-due-to-unchecked-null-val.patch
@@ -0,0 +1,30 @@
1From 7225bf8e8e9bee42d7d7d02ba754b9fb30a877b6 Mon Sep 17 00:00:00 2001
2From: Paul Eggleton <paul.eggleton@linux.intel.com>
3Date: Mon, 16 Apr 2012 19:15:35 +0100
4Subject: [PATCH] connman-gnome: fix segfault due to unchecked null value
5
6If value is NULL here we should not pass it to g_value_get_boxed().
7
8Upstream-Status: Submitted
9
10Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
11---
12 common/connman-dbus.c | 2 +-
13 1 files changed, 1 insertions(+), 1 deletions(-)
14
15diff --git a/common/connman-dbus.c b/common/connman-dbus.c
16index 33ac623..822fc98 100644
17--- a/common/connman-dbus.c
18+++ b/common/connman-dbus.c
19@@ -437,7 +437,7 @@ static void service_properties(DBusGProxy *proxy, GHashTable *hash,
20 DBG("name %s type %d icon %s", name, type, icon);
21
22 value = g_hash_table_lookup(hash, "IPv4.Configuration");
23- ipv4 = g_value_get_boxed (value);
24+ ipv4 = value ? g_value_get_boxed (value) : NULL;
25
26 if (!ipv4)
27 goto done;
28--
291.7.5.4
30