From: Daniel Wagner <daniel.wag...@bmw-carit.de>

entry_head and entry_return are allocated via g_try_malloc0().
---
 src/iptables.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/iptables.c b/src/iptables.c
index e4935b2..1fd6c42 100644
--- a/src/iptables.c
+++ b/src/iptables.c
@@ -613,8 +613,6 @@ static int iptables_add_chain(struct connman_iptables 
*table,
        if (entry_head == NULL)
                goto err_head;
 
-       memset(entry_head, 0, entry_head_size);
-
        entry_head->target_offset = sizeof(struct ipt_entry);
        entry_head->next_offset = entry_head_size;
 
@@ -633,8 +631,6 @@ static int iptables_add_chain(struct connman_iptables 
*table,
        if (entry_return == NULL)
                goto err;
 
-       memset(entry_return, 0, entry_return_size);
-
        entry_return->target_offset = sizeof(struct ipt_entry);
        entry_return->next_offset = entry_return_size;
 
-- 
1.8.2.rc3.16.gce432ca

_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to