mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
RAdv: Fix crash during prefix change
Thanks to Julian Schuh for the bugreport.
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user