aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vnet/srv6/sr_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/srv6/sr_api.c b/src/vnet/srv6/sr_api.c
index 9bb1a16f18a..c039da01c63 100644
--- a/src/vnet/srv6/sr_api.c
+++ b/src/vnet/srv6/sr_api.c
@@ -314,7 +314,7 @@ static void send_sr_policies_details
api_sid_list->num_sids = vec_len (segment_list->segments);
api_sid_list->weight = htonl (segment_list->weight);
-
+ slidx = 0;
vec_foreach (segment, segment_list->segments)
{
ip6_address_encode (segment, api_sid_list->sids[slidx++]);