aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-grsec/ip_gre.patch
blob: ba5f19b3004dae4aed62e5176c5a842bc6146dea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;