summaryrefslogtreecommitdiffstats
path: root/zebra/label_manager.c
diff options
context:
space:
mode:
authorPat Ruddy <pat@voltanet.io>2020-12-09 11:23:44 +0100
committerPat Ruddy <pat@voltanet.io>2021-01-04 15:29:44 +0100
commit3c844979431822386bcc2c8728a83513528675b2 (patch)
treee14073149bed23d6ba89b58c399b2ccb93123376 /zebra/label_manager.c
parentbgpd: add missing unlock of path_info (diff)
downloadfrr-3c844979431822386bcc2c8728a83513528675b2.tar.xz
frr-3c844979431822386bcc2c8728a83513528675b2.zip
zebra: label manager should never return a reserved block
if the requested chunk size was less than 16 then a chunk within the reserved block would be returned. Make sure that we never return labels that are below MPLS_LABEL_UNRESERVED_MIN Signed-off-by: Pat Ruddy <pat@voltanet.io>
Diffstat (limited to 'zebra/label_manager.c')
-rw-r--r--zebra/label_manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/label_manager.c b/zebra/label_manager.c
index feec49ecc..b393e656d 100644
--- a/zebra/label_manager.c
+++ b/zebra/label_manager.c
@@ -313,7 +313,7 @@ static struct label_manager_chunk *assign_label_chunk(uint8_t proto,
{
struct label_manager_chunk *lmc;
struct listnode *node;
- uint32_t prev_end = 0;
+ uint32_t prev_end = MPLS_LABEL_UNRESERVED_MIN;
/* handle chunks request with a specific base label */
if (base != MPLS_LABEL_BASE_ANY)