Unverified Commit d0010b0a authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!7029 [sync] PR-6977: wireguard: netlink: access device through ctx instead of peer

parents 4244c006 875b44a0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -164,8 +164,8 @@ get_peer(struct wg_peer *peer, struct sk_buff *skb, struct dump_ctx *ctx)
	if (!allowedips_node)
		goto no_allowedips;
	if (!ctx->allowedips_seq)
		ctx->allowedips_seq = peer->device->peer_allowedips.seq;
	else if (ctx->allowedips_seq != peer->device->peer_allowedips.seq)
		ctx->allowedips_seq = ctx->wg->peer_allowedips.seq;
	else if (ctx->allowedips_seq != ctx->wg->peer_allowedips.seq)
		goto no_allowedips;

	allowedips_nest = nla_nest_start(skb, WGPEER_A_ALLOWEDIPS);