diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2025-03-15 18:33:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-15 18:33:07 +0100 |
| commit | d73d76337eab0efbc07ce81ba64a77af95988ddc (patch) | |
| tree | eaaf3677670e0abb4272afae6c394ee73333f034 | |
| parent | e3b6a8c459399e39cce81bed8ff75f60da88b0a3 (diff) | |
| parent | 6194d6a4a280b7ce5ee965a5c99db6b1350385ce (diff) | |
Merge pull request #18392 from FRRouting/mergify/bp/stable/10.2/pr-18360
zebra: ensure proper return for failure for Sid allocation (backport #18360)
| -rw-r--r-- | zebra/zebra_srv6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_srv6.c b/zebra/zebra_srv6.c index 082d4609aa..85b6b42464 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; } /* |
