mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-12 20:22:05 +01:00
16 lines
285 B
Diff
16 lines
285 B
Diff
--- 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;
|
|
|