From 774e02529f024ace23e83f9ac26877a4d616eef4 Mon Sep 17 00:00:00 2001 From: Jakob Olsson <jakob.olsson@iopsys.eu> Date: Wed, 9 Jun 2021 15:23:36 +0200 Subject: [PATCH] cntlr_map: compare origin to policy agentid --- src/core/cntlr_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cntlr_map.c b/src/core/cntlr_map.c index e322e3db..ccfe6dda 100644 --- a/src/core/cntlr_map.c +++ b/src/core/cntlr_map.c @@ -408,7 +408,7 @@ int handle_ap_autoconfig_wsc(void *cntlr, struct cmdu_buff *rx_cmdu) return -1; list_for_each_entry(a, &c->cfg.policylist, list) { - if (!memcmp(rx_cmdu->dev_macaddr, a->agent_id, 6)) { + if (!memcmp(rx_cmdu->origin, a->agent_id, 6)) { agent_found = true; break; } -- GitLab