Message ID | 20230315105623.1396491-3-steffen.klassert@secunet.com (mailing list archive) |
---|---|
State | Accepted |
Commit | c276a706ea1f51cf9723ed8484feceaf961b8f89 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [1/2] xfrm: Zero padding when dumping algos and encap | expand |
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 00afe831c71c..f238048bf786 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -2815,11 +2815,6 @@ int __xfrm_init_state(struct xfrm_state *x, bool init_replay, bool offload, goto error; } - if (!(inner_mode->flags & XFRM_MODE_FLAG_TUNNEL)) { - NL_SET_ERR_MSG(extack, "Only tunnel modes can accommodate an AF_UNSPEC selector"); - goto error; - } - x->inner_mode = *inner_mode; if (x->props.family == AF_INET)