summaryrefslogtreecommitdiff
path: root/zebra/zebra_srv6_vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_srv6_vty.c')
-rw-r--r--zebra/zebra_srv6_vty.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/zebra/zebra_srv6_vty.c b/zebra/zebra_srv6_vty.c
index 6867b1bbb6..22ba9386d9 100644
--- a/zebra/zebra_srv6_vty.c
+++ b/zebra/zebra_srv6_vty.c
@@ -484,14 +484,10 @@ DEFPY (locator_prefix,
if (memcmp(&chunk->prefix.prefix, zero, 16) == 0) {
struct zserv *client;
- struct listnode *client_node;
chunk->prefix = *prefix;
- for (ALL_LIST_ELEMENTS_RO(zrouter.client_list,
- client_node,
- client)) {
+ frr_each (zserv_client_list, &zrouter.client_list, client) {
struct srv6_locator *tmp;
-
if (client->proto != chunk->proto)
continue;