summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2018-07-19 20:54:10 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-07-19 20:54:55 +0200
commit0ed3129f6b0a80afea877340d940e45f1a5d3000 (patch)
tree859349797e13d3e9cffd4e63400f3be2e9c7014a /proto
parent8bd718b3ba34cee95a5443f3d20d6f16c2d4c946 (diff)
RAdv: Fix crash during prefix change
Thanks to Julian Schuh for the bugreport.
Diffstat (limited to 'proto')
-rw-r--r--proto/radv/radv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/radv/radv.c b/proto/radv/radv.c
index ce88c7cc..389f598c 100644
--- a/proto/radv/radv.c
+++ b/proto/radv/radv.c
@@ -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);