From 0ed3129f6b0a80afea877340d940e45f1a5d3000 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Thu, 19 Jul 2018 20:54:10 +0200 Subject: [PATCH] RAdv: Fix crash during prefix change Thanks to Julian Schuh for the bugreport. --- proto/radv/radv.c | 4 ++-- 1 file 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);