Nicolas Dichtel b8d6d00797 xfrm: fix sa selector validation
After commit b38ff4075a80, the following command does not work anymore:
$ ip xfrm state add src 10.125.0.2 dst 10.125.0.1 proto esp spi 34 reqid 1 \
  mode tunnel enc 'cbc(aes)' 0xb0abdba8b782ad9d364ec81e3a7d82a1 auth-trunc \
  'hmac(sha1)' 0xe26609ebd00acb6a4d51fca13e49ea78a72c73e6 96 flag align4

In fact, the selector is not mandatory, allow the user to provide an empty
selector.

Fixes: b38ff4075a80 ("xfrm: Fix xfrm sel prefix length validation")
CC: Anirudh Gupta <anirudh.gupta@sophos.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
2019-06-17 11:22:35 +02:00
..
2019-05-05 10:25:52 -07:00
2019-04-21 10:37:26 -07:00
2019-04-27 09:07:04 -07:00
2019-05-16 17:00:13 -07:00
2019-05-16 14:25:58 -07:00
2018-11-10 16:55:11 -08:00
2019-05-09 09:02:46 -07:00
2019-04-19 14:07:40 -07:00
2019-06-17 11:22:35 +02:00
2019-04-19 14:07:40 -07:00