summaryrefslogtreecommitdiffstats
path: root/src/vnet/srv6
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-04-17 12:11:26 +0200
committerDave Wallace <dwallacelf@gmail.com>2020-04-20 19:55:27 +0000
commitb9753540d2a69bbab807653fc3d0c1b43ec4d6d5 (patch)
tree4a346db0bbf298be36c16e0b859a737e3a7653ef /src/vnet/srv6
parent0e6199dfa20d4c010bf3ac43e051f9f29c213478 (diff)
sr: fix non-NULL terminated string overflow
Type: fix Change-Id: Ia5ae0e893a5358f61353d20f444d88d79953e482 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vnet/srv6')
-rwxr-xr-xsrc/vnet/srv6/sr_policy_rewrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/srv6/sr_policy_rewrite.c b/src/vnet/srv6/sr_policy_rewrite.c
index b7fbc4b8cda..814fd6266ec 100755
--- a/src/vnet/srv6/sr_policy_rewrite.c
+++ b/src/vnet/srv6/sr_policy_rewrite.c
@@ -1147,7 +1147,7 @@ show_sr_policies_command_fn (vlib_main_t * vm, unformat_input_t * input,
}
s = format (s, "\b\b > ");
s = format (s, "weight: %u", segment_list->weight);
- vlib_cli_output (vm, " %s", s);
+ vlib_cli_output (vm, " %v", s);
}
vlib_cli_output (vm, "-----------");
}