|
@@ -654,7 +654,7 @@ static void esp_input_restore_header(struct sk_buff *skb)
|
|
|
static void esp_input_set_header(struct sk_buff *skb, __be32 *seqhi)
|
|
static void esp_input_set_header(struct sk_buff *skb, __be32 *seqhi)
|
|
|
{
|
|
{
|
|
|
struct xfrm_state *x = xfrm_input_state(skb);
|
|
struct xfrm_state *x = xfrm_input_state(skb);
|
|
|
- struct ip_esp_hdr *esph = (struct ip_esp_hdr *)skb->data;
|
|
|
|
|
|
|
+ struct ip_esp_hdr *esph;
|
|
|
|
|
|
|
|
/* For ESN we move the header forward by 4 bytes to
|
|
/* For ESN we move the header forward by 4 bytes to
|
|
|
* accomodate the high bits. We will move it back after
|
|
* accomodate the high bits. We will move it back after
|