]> git.puffer.fish Git - mirror/frr.git/commit
zebra: labelmanager could return reserved labels
authorPat Ruddy <pat@voltanet.io>
Wed, 9 Dec 2020 10:25:38 +0000 (10:25 +0000)
committerPat Ruddy <pat@voltanet.io>
Mon, 4 Jan 2021 14:29:44 +0000 (14:29 +0000)
commit189982283ad88132fbdb1342895c7404fa5fc34a
tree96ab93bccdacb8764a00c57c766b792bd15d7812
parent3c844979431822386bcc2c8728a83513528675b2
zebra: labelmanager could return reserved labels

when checking if there is a "hole" behind the current reservation
marker the calculation of whether the hole is big enough to satisfy
the requested chunk is out by 1. This could result in returning a label
which has already been allocated.

Signed-off-by: Pat Ruddy <pat@voltanet.io>
zebra/label_manager.c