From: Ondrej Zajicek (work) Date: Thu, 19 Jul 2018 18:54:10 +0000 (+0200) Subject: RAdv: Fix crash during prefix change X-Git-Tag: v2.0.3~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ed3129f6b0a80afea877340d940e45f1a5d3000;p=thirdparty%2Fbird.git RAdv: Fix crash during prefix change Thanks to Julian Schuh for the bugreport. --- diff --git a/proto/radv/radv.c b/proto/radv/radv.c index ce88c7cce..389f598c6 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);