summaryrefslogtreecommitdiffstats
path: root/main/linux-grsec/ip_gre.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/linux-grsec/ip_gre.patch')
-rw-r--r--main/linux-grsec/ip_gre.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/linux-grsec/ip_gre.patch b/main/linux-grsec/ip_gre.patch
new file mode 100644
index 00000000..ba5f19b3
--- /dev/null
+++ b/main/linux-grsec/ip_gre.patch
@@ -0,0 +1,15 @@
+--- a/net/ipv4/ip_gre.c.orig
++++ b/net/ipv4/ip_gre.c
+@@ -1137,11 +1137,8 @@
+
+ if (saddr)
+ memcpy(&iph->saddr, saddr, 4);
+-
+- if (daddr) {
++ if (daddr)
+ memcpy(&iph->daddr, daddr, 4);
+- return t->hlen;
+- }
+ if (iph->daddr && !ipv4_is_multicast(iph->daddr))
+ return t->hlen;
+