RAdv: Fix crash during prefix change
Thanks to Julian Schuh for the bugreport.
This commit is contained in:
parent
8bd718b3ba
commit
0ed3129f6b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue