Message ID | 20230208114322.266510-3-steffen.klassert@secunet.com (mailing list archive) |
---|---|
State | Accepted |
Commit | eb6c59b735aa6cca77cdbb59cc69d69a0d63d986 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [1/6] Fix XFRM-I support for nested ESP tunnels | expand |
diff --git a/net/xfrm/xfrm_compat.c b/net/xfrm/xfrm_compat.c index a0f62fa02e06..12405aa5bce8 100644 --- a/net/xfrm/xfrm_compat.c +++ b/net/xfrm/xfrm_compat.c @@ -302,7 +302,7 @@ static int xfrm_xlate64(struct sk_buff *dst, const struct nlmsghdr *nlh_src) nla_for_each_attr(nla, attrs, len, remaining) { int err; - switch (type) { + switch (nlh_src->nlmsg_type) { case XFRM_MSG_NEWSPDINFO: err = xfrm_nla_cpy(dst, nla, nla_len(nla)); break;