Send connman mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."
Today's Topics:
1. [PATCH] guspplicant: Fix dereferencing of NULL pointer.
(Niraj Kumar Goit)
2. [PATCH] iptables: Fix possible memory leak (Niraj Kumar Goit)
----------------------------------------------------------------------
Message: 1
Date: Fri, 22 Jan 2016 10:08:52 +0530
From: Niraj Kumar Goit <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: [PATCH] guspplicant: Fix dereferencing of NULL pointer.
Message-ID: <[email protected]>
---
gsupplicant/supplicant.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index 342cb01..5a0a5e4 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -3609,7 +3609,8 @@ static void interface_create_params(DBusMessageIter
*iter, void *user_data)
supplicant_dbus_dict_open(iter, &dict);
- supplicant_dbus_dict_append_basic(&dict, "Ifname",
+ if (data->ifname)
+ supplicant_dbus_dict_append_basic(&dict, "Ifname",
DBUS_TYPE_STRING, &data->ifname);
if (data->driver)
--
1.7.9.5
------------------------------
Message: 2
Date: Fri, 22 Jan 2016 16:33:46 +0530
From: Niraj Kumar Goit <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: [PATCH] iptables: Fix possible memory leak
Message-ID: <[email protected]>
This patch free memory allocated to cbd by cb_data_new() when
get_table() return NULL.
---
src/iptables.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/iptables.c b/src/iptables.c
index fa2f05b..bc0c763 100644
--- a/src/iptables.c
+++ b/src/iptables.c
@@ -2423,8 +2423,10 @@ int __connman_iptables_iterate_chains(const char
*table_name,
struct connman_iptables *table;
table = get_table(table_name);
- if (!table)
+ if (!table) {
+ g_free(cbd);
return -EINVAL;
+ }
iterate_entries(table->blob_entries->entrytable,
table->info->valid_hooks,
--
1.7.9.5
------------------------------
Subject: Digest Footer
_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman
------------------------------
End of connman Digest, Vol 3, Issue 16
**************************************