Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7f5c0cb05f158ee91414e1f99d3fe18349a80371
Commit:     7f5c0cb05f158ee91414e1f99d3fe18349a80371
Parent:     1ced98e81d1c2f1ce965ecf8d0032e02ffa07bf0
Author:     Arnaldo Carvalho de Melo <[EMAIL PROTECTED]>
AuthorDate: Sat Mar 10 19:59:16 2007 -0300
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Apr 25 22:24:55 2007 -0700

    [SK_BUFF] xfrm4: use skb_reset_network_header
    
    Setting it to skb->h.raw, which is valid, in the (to become) old pointer 
based
    world order and in the new world of offset based layer headers.
    
    Signed-off-by: Arnaldo Carvalho de Melo <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/ipv4/xfrm4_mode_transport.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/net/ipv4/xfrm4_mode_transport.c b/net/ipv4/xfrm4_mode_transport.c
index 290c0f2..a820dde 100644
--- a/net/ipv4/xfrm4_mode_transport.c
+++ b/net/ipv4/xfrm4_mode_transport.c
@@ -50,8 +50,10 @@ static int xfrm4_transport_input(struct xfrm_state *x, 
struct sk_buff *skb)
 {
        int ihl = skb->data - skb->h.raw;
 
-       if (skb->h.raw != skb->nh.raw)
-               skb->nh.raw = memmove(skb->h.raw, skb->nh.raw, ihl);
+       if (skb->h.raw != skb->nh.raw) {
+               memmove(skb->h.raw, skb->nh.raw, ihl);
+               skb->nh.raw = skb->h.raw;
+       }
        skb->nh.iph->tot_len = htons(skb->len + ihl);
        skb->h.raw = skb->data;
        return 0;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to