0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

RAdv: Fix crash during prefix change

Thanks to Julian Schuh for the bugreport.
This commit is contained in:
Ondrej Zajicek (work) 2018-07-19 20:54:10 +02:00
parent 8bd718b3ba
commit 0ed3129f6b

View File

@ -174,7 +174,7 @@ radv_prepare_prefixes(struct radv_iface *ifa)
if (pfx->valid && !pfx->mark)
{
RADV_TRACE(D_EVENTS, "Invalidating prefix %N on %s",
pfx->prefix, ifa->iface->name);
&pfx->prefix, ifa->iface->name);
pfx->valid = 0;
pfx->changed = now;
@ -201,7 +201,7 @@ radv_prune_prefixes(struct radv_iface *ifa)
if (expires <= now)
{
RADV_TRACE(D_EVENTS, "Removing prefix %N on %s",
px->prefix, ifa->iface->name);
&px->prefix, ifa->iface->name);
rem_node(NODE px);
mb_free(px);