mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
RAdv: Fix crash during prefix change
Thanks to Julian Schuh for the bugreport.
This commit is contained in:
parent
8bd718b3ba
commit
0ed3129f6b
@ -174,7 +174,7 @@ radv_prepare_prefixes(struct radv_iface *ifa)
|
|||||||
if (pfx->valid && !pfx->mark)
|
if (pfx->valid && !pfx->mark)
|
||||||
{
|
{
|
||||||
RADV_TRACE(D_EVENTS, "Invalidating prefix %N on %s",
|
RADV_TRACE(D_EVENTS, "Invalidating prefix %N on %s",
|
||||||
pfx->prefix, ifa->iface->name);
|
&pfx->prefix, ifa->iface->name);
|
||||||
|
|
||||||
pfx->valid = 0;
|
pfx->valid = 0;
|
||||||
pfx->changed = now;
|
pfx->changed = now;
|
||||||
@ -201,7 +201,7 @@ radv_prune_prefixes(struct radv_iface *ifa)
|
|||||||
if (expires <= now)
|
if (expires <= now)
|
||||||
{
|
{
|
||||||
RADV_TRACE(D_EVENTS, "Removing prefix %N on %s",
|
RADV_TRACE(D_EVENTS, "Removing prefix %N on %s",
|
||||||
px->prefix, ifa->iface->name);
|
&px->prefix, ifa->iface->name);
|
||||||
|
|
||||||
rem_node(NODE px);
|
rem_node(NODE px);
|
||||||
mb_free(px);
|
mb_free(px);
|
||||||
|
Loading…
Reference in New Issue
Block a user