]> git.ipfire.org Git - thirdparty/bird.git/commit
Static: Fix bug in static route filter expressions
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Fri, 17 Feb 2017 21:54:06 +0000 (22:54 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Fri, 17 Feb 2017 21:54:06 +0000 (22:54 +0100)
commit30c734fc73648e4c43af4f45e68ac2de3d7ddea1
treec58dcf00d56bce01ec7c018fe5035fa06d3a6cab
parentda65a3d898fde0ce567782d86919a66e29916ed7
Static: Fix bug in static route filter expressions

During reconfiguration, old and new filter expressions in static routes
are compared using i_same() function. When filter expressions contain
function calls, it is necessary that old filter expressions are the
second argument in i_same(), as it is internally modified by i_same().
Otherwise pointers to old (and freed) data appear in the config
structure.

Thanks to Lennert Buytenhek for tracking and reporting the bug.
proto/static/static.c