summaryrefslogtreecommitdiff
path: root/zebra/zebra_srv6_vty.c
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2024-08-18 13:34:12 -0400
committerGitHub <noreply@github.com>2024-08-18 13:34:12 -0400
commit5dd2b67ff546f7febc7bd2869d8e0ff4966b3d8c (patch)
treeaeab9f14db38704c83fd18bbc3f81a561af55bfd /zebra/zebra_srv6_vty.c
parentc61069c34186d0de2b4eb4b3d35a4682eae93525 (diff)
parent354f9e9009326d695edf4b39d6fcc5feb9f3e8cf (diff)
Merge pull request #16603 from cscarpitta/fix/fix-compilation-warnings
lib, zebra: Fix a couple compilation warnings
Diffstat (limited to 'zebra/zebra_srv6_vty.c')
-rw-r--r--zebra/zebra_srv6_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_srv6_vty.c b/zebra/zebra_srv6_vty.c
index c664a9c69f..5a80524149 100644
--- a/zebra/zebra_srv6_vty.c
+++ b/zebra/zebra_srv6_vty.c
@@ -969,7 +969,7 @@ static int zebra_sr_config(struct vty *vty)
&srv6->encap_src_addr);
}
}
- if (zebra_srv6_is_enable()) {
+ if (srv6 && zebra_srv6_is_enable()) {
vty_out(vty, " locators\n");
for (ALL_LIST_ELEMENTS_RO(srv6->locators, node, locator)) {
inet_ntop(AF_INET6, &locator->prefix.prefix,