From 3c844979431822386bcc2c8728a83513528675b2 Mon Sep 17 00:00:00 2001 From: Pat Ruddy Date: Wed, 9 Dec 2020 10:23:44 +0000 Subject: [PATCH] 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 --- zebra/label_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/label_manager.c b/zebra/label_manager.c index feec49ecc2..b393e656d4 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) -- 2.39.5