summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2025-03-15 18:33:01 +0100
committerGitHub <noreply@github.com>2025-03-15 18:33:01 +0100
commit18d8e7dbcfb2fe3dffc4e606c9bdef751db40b82 (patch)
tree6a0a318dc50b930b3c1b371558ebea1d2f32b298
parent85cf1ed576deed121751e16a64970f8a652a9e1e (diff)
parentf144edb25563db87feea8cbce957ea8bf66128ab (diff)
Merge pull request #18391 from FRRouting/mergify/bp/stable/10.3/pr-18360
zebra: ensure proper return for failure for Sid allocation (backport #18360)
-rw-r--r--zebra/zebra_srv6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_srv6.c b/zebra/zebra_srv6.c
index 6d228c5e24..b1e68ffef0 100644
--- a/zebra/zebra_srv6.c
+++ b/zebra/zebra_srv6.c
@@ -1235,7 +1235,7 @@ static bool alloc_srv6_sid_func_explicit(struct zebra_srv6_sid_block *block,
zlog_warn("%s: function %u is outside ELIB [%u/%u] and EWLIB alloc ranges [%u/%u]",
__func__, sid_func, elib_start,
elib_end, ewlib_start, ewlib_end);
- return -1;
+ return false;
}
} else if (format->type == SRV6_SID_FORMAT_TYPE_UNCOMPRESSED) {
uint32_t explicit_start =
@@ -1394,7 +1394,7 @@ static bool alloc_srv6_sid_func_dynamic(struct zebra_srv6_sid_block *block,
dynamic_end) {
zlog_warn("%s: SRv6: Warning, SRv6 SID Dynamic alloc space is depleted",
__func__);
- return NULL;
+ return false;
}
/*