aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/wireguard
diff options
context:
space:
mode:
authorArtem Glazychev <artem.glazychev@xored.com>2021-10-07 16:20:38 +0700
committerDamjan Marion <dmarion@me.com>2021-10-07 15:38:50 +0000
commitadf1497ee0eef85c6ecb44802ba7397d9dd67a59 (patch)
treed772e23630aba533450f395097250d5746fa6634 /src/plugins/wireguard
parent9685624a50613344ad6cc1405fa561ea86888f06 (diff)
wireguard: peers dump fix
Type: fix Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Change-Id: I4450b8c8b50a3be8d6a399f6a58bc0e8eb500b28
Diffstat (limited to 'src/plugins/wireguard')
-rw-r--r--src/plugins/wireguard/wireguard_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/wireguard/wireguard_api.c b/src/plugins/wireguard/wireguard_api.c
index d97ea8eb1bc..4cb40a15231 100644
--- a/src/plugins/wireguard/wireguard_api.c
+++ b/src/plugins/wireguard/wireguard_api.c
@@ -259,7 +259,7 @@ vl_api_wireguard_peers_dump_t_handler (vl_api_wireguard_peers_dump_t * mp)
if (mp->peer_index == ~0)
wg_peer_walk (wg_api_send_peers_details, &ctx);
else
- wg_api_send_peers_details (mp->peer_index, &ctx);
+ wg_api_send_peers_details (ntohl (mp->peer_index), &ctx);
}
static vpe_client_registration_t *