Blob Blame History Raw
From 32e8e2b169b215cca038121268d6e6968719f268 Mon Sep 17 00:00:00 2001
From: Luis Fernando <tdthp@terra.com.br>
Date: Wed, 3 Jul 2013 22:19:55 +0200
Subject: [PATCH] workaround for kernel regression bug: IPv6 source/destination
 addresses are potentially not matched correctly

Signed-off-by: Phil Sutter <psutter@redhat.com>
---
 extensions/ebt_ip6.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/extensions/ebt_ip6.c b/extensions/ebt_ip6.c
index 0465e77b5d906..bbdc4aef9a172 100644
--- a/extensions/ebt_ip6.c
+++ b/extensions/ebt_ip6.c
@@ -312,6 +312,10 @@ static void init(struct ebt_entry_match *match)
 
 	ipinfo->invflags = 0;
 	ipinfo->bitmask = 0;
+	memset(ipinfo->saddr.s6_addr, 0, sizeof(ipinfo->saddr.s6_addr));
+	memset(ipinfo->smsk.s6_addr, 0, sizeof(ipinfo->smsk.s6_addr));
+	memset(ipinfo->daddr.s6_addr, 0, sizeof(ipinfo->daddr.s6_addr));
+	memset(ipinfo->dmsk.s6_addr, 0, sizeof(ipinfo->dmsk.s6_addr));
 }
 
 #define OPT_SOURCE 0x01
-- 
2.21.0