diff options
Diffstat (limited to 'net/xfrm/xfrm_user.c')
-rw-r--r-- | net/xfrm/xfrm_user.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 1810f5645bb5..22a30ae582a2 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -981,6 +981,8 @@ static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut, | |||
981 | t->aalgos = ut->aalgos; | 981 | t->aalgos = ut->aalgos; |
982 | t->ealgos = ut->ealgos; | 982 | t->ealgos = ut->ealgos; |
983 | t->calgos = ut->calgos; | 983 | t->calgos = ut->calgos; |
984 | /* If all masks are ~0, then we allow all algorithms. */ | ||
985 | t->allalgs = !~(t->aalgos & t->ealgos & t->calgos); | ||
984 | t->encap_family = ut->family; | 986 | t->encap_family = ut->family; |
985 | } | 987 | } |
986 | } | 988 | } |