diff options
-rw-r--r-- | src/plugins/wireguard/wireguard_api.c | 2 |
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 * |