Commit 7c9b47ff authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[IPSEC]: Fix alen calcs in non-IKE encapsulation.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent e4be0dc2
...@@ -106,7 +106,6 @@ int esp_output(struct sk_buff **pskb) ...@@ -106,7 +106,6 @@ int esp_output(struct sk_buff **pskb)
udpdata32 = (u32*)(uh+1); udpdata32 = (u32*)(uh+1);
udpdata32[0] = udpdata32[1] = 0; udpdata32[0] = udpdata32[1] = 0;
esph = (struct ip_esp_hdr*)(udpdata32+2); esph = (struct ip_esp_hdr*)(udpdata32+2);
alen += 2;
top_iph->protocol = IPPROTO_UDP; top_iph->protocol = IPPROTO_UDP;
break; break;
default: default:
...@@ -149,7 +148,6 @@ int esp_output(struct sk_buff **pskb) ...@@ -149,7 +148,6 @@ int esp_output(struct sk_buff **pskb)
udpdata32 = (u32*)(uh+1); udpdata32 = (u32*)(uh+1);
udpdata32[0] = udpdata32[1] = 0; udpdata32[0] = udpdata32[1] = 0;
esph = (struct ip_esp_hdr*)(udpdata32+2); esph = (struct ip_esp_hdr*)(udpdata32+2);
alen += 2;
top_iph->protocol = IPPROTO_UDP; top_iph->protocol = IPPROTO_UDP;
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment