diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c index 7f2caf71212beb1b3a65cdf75df38868be21c627..65cc02bd82bc87991a29135a58c059c7916a5a35 100644 --- a/net/ipv4/esp4.c +++ b/net/ipv4/esp4.c @@ -317,6 +317,7 @@ int esp_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info * if (nfrags < 0) goto out; tail = skb_tail_pointer(trailer); + esp->esph = ip_esp_hdr(skb); skip_cow: esp_output_fill_trailer(tail, esp->tfclen, esp->plen, esp->proto);