]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[IPSEC] IPV6: Fix to add tunnel mode SA correctly.
authorMasahide NAKAMURA <nakam@linux-ipv6.org>
Mon, 22 Oct 2007 09:30:15 +0000 (02:30 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 22 Oct 2007 09:59:58 +0000 (02:59 -0700)
Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ah6.c
net/ipv6/esp6.c

index 67cd06613a253b3fc6197726dc259764b2be0f34..66a9139d46e97fe30a843c08c356e69d990abfac 100644 (file)
@@ -483,6 +483,7 @@ static int ah6_init_state(struct xfrm_state *x)
                break;
        case XFRM_MODE_TUNNEL:
                x->props.header_len += sizeof(struct ipv6hdr);
+               break;
        default:
                goto error;
        }
index b0715432e454e4360a0e3e55fbded272a048b235..72a659806cadfb4f7d026e10e6eef9df41f9e0ef 100644 (file)
@@ -360,6 +360,7 @@ static int esp6_init_state(struct xfrm_state *x)
                break;
        case XFRM_MODE_TUNNEL:
                x->props.header_len += sizeof(struct ipv6hdr);
+               break;
        default:
                goto error;
        }