xfrm: Fix installation of AH IPsec SAs
The SPI check introduced inea9884b3ac
was intended for IPComp SAs but actually prevented AH SAs from getting installed (depending on the SPI). Fixes:ea9884b3ac
("xfrm: check user specified spi for IPComp") Cc: Fan Du <fan.du@windriver.com> Signed-off-by: Tobias Brunner <tobias@strongswan.org> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
This commit is contained in:
parent
b7eea4545e
commit
a0e5ef53aa
|
@ -177,9 +177,7 @@ static int verify_newsa_info(struct xfrm_usersa_info *p,
|
|||
attrs[XFRMA_ALG_AEAD] ||
|
||||
attrs[XFRMA_ALG_CRYPT] ||
|
||||
attrs[XFRMA_ALG_COMP] ||
|
||||
attrs[XFRMA_TFCPAD] ||
|
||||
(ntohl(p->id.spi) >= 0x10000))
|
||||
|
||||
attrs[XFRMA_TFCPAD])
|
||||
goto out;
|
||||
break;
|
||||
|
||||
|
@ -207,7 +205,8 @@ static int verify_newsa_info(struct xfrm_usersa_info *p,
|
|||
attrs[XFRMA_ALG_AUTH] ||
|
||||
attrs[XFRMA_ALG_AUTH_TRUNC] ||
|
||||
attrs[XFRMA_ALG_CRYPT] ||
|
||||
attrs[XFRMA_TFCPAD])
|
||||
attrs[XFRMA_TFCPAD] ||
|
||||
(ntohl(p->id.spi) >= 0x10000))
|
||||
goto out;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue