summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/iptables.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/iptables.c b/src/iptables.c
index e4935b2d..1fd6c428 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;