diff options
Diffstat (limited to 'net/ipv6/esp6.c')
-rw-r--r-- | net/ipv6/esp6.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c index a902ff8f59be..1a7f00cd4803 100644 --- a/net/ipv6/esp6.c +++ b/net/ipv6/esp6.c | |||
@@ -890,13 +890,12 @@ static int esp6_init_state(struct xfrm_state *x) | |||
890 | x->props.header_len += IPV4_BEET_PHMAXLEN + | 890 | x->props.header_len += IPV4_BEET_PHMAXLEN + |
891 | (sizeof(struct ipv6hdr) - sizeof(struct iphdr)); | 891 | (sizeof(struct ipv6hdr) - sizeof(struct iphdr)); |
892 | break; | 892 | break; |
893 | default: | ||
893 | case XFRM_MODE_TRANSPORT: | 894 | case XFRM_MODE_TRANSPORT: |
894 | break; | 895 | break; |
895 | case XFRM_MODE_TUNNEL: | 896 | case XFRM_MODE_TUNNEL: |
896 | x->props.header_len += sizeof(struct ipv6hdr); | 897 | x->props.header_len += sizeof(struct ipv6hdr); |
897 | break; | 898 | break; |
898 | default: | ||
899 | goto error; | ||
900 | } | 899 | } |
901 | 900 | ||
902 | align = ALIGN(crypto_aead_blocksize(aead), 4); | 901 | align = ALIGN(crypto_aead_blocksize(aead), 4); |