[IPSEC] IPV6: Fix to add tunnel mode SA correctly.
Masahide NAKAMURA [Mon, 22 Oct 2007 09:30:15 +0000 (02:30 -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 67cd066..66a9139 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 b071543..72a6598 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;
        }