summaryrefslogtreecommitdiffstats
path: root/net/ipv6/esp6.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/esp6.c')
-rw-r--r--net/ipv6/esp6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c
index 7c888c6e53a9..97513f35bcc5 100644
--- a/net/ipv6/esp6.c
+++ b/net/ipv6/esp6.c
@@ -900,13 +900,12 @@ static int esp6_init_state(struct xfrm_state *x)
900 x->props.header_len += IPV4_BEET_PHMAXLEN + 900 x->props.header_len += IPV4_BEET_PHMAXLEN +
901 (sizeof(struct ipv6hdr) - sizeof(struct iphdr)); 901 (sizeof(struct ipv6hdr) - sizeof(struct iphdr));
902 break; 902 break;
903 default:
903 case XFRM_MODE_TRANSPORT: 904 case XFRM_MODE_TRANSPORT:
904 break; 905 break;
905 case XFRM_MODE_TUNNEL: 906 case XFRM_MODE_TUNNEL:
906 x->props.header_len += sizeof(struct ipv6hdr); 907 x->props.header_len += sizeof(struct ipv6hdr);
907 break; 908 break;
908 default:
909 goto error;
910 } 909 }
911 910
912 align = ALIGN(crypto_aead_blocksize(aead), 4); 911 align = ALIGN(crypto_aead_blocksize(aead), 4);