]> git.ipfire.org Git - location/libloc.git/commit
database: Restart flatten algorithm from the top when a network was dropped
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 1 Dec 2020 16:58:29 +0000 (16:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 1 Dec 2020 17:02:35 +0000 (17:02 +0000)
commit6bd9cd76cd21800918e769628edf71f8bf57ea88
tree3dc29e3205429c010adeeb9c734c61903e244f47
parent92202e5add0cff31d02f65b3f122ed81fe77a60e
database: Restart flatten algorithm from the top when a network was dropped

We used to simply take the first element from the stack after we have
split a network. That is wrong because it is not passing through any
filters and no further subnet checks. It could have therefore been
that the tree was not entirely flat.

Reported-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/database.c