]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
RAdv: Fix crash during prefix change
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 19 Jul 2018 18:54:10 +0000 (20:54 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 19 Jul 2018 18:54:55 +0000 (20:54 +0200)
Thanks to Julian Schuh for the bugreport.

proto/radv/radv.c

index ce88c7cce212ab8c78868748b9e8d0b87a8dc844..389f598c6f78f49a9733fb79c3f5022e176d5591 100644 (file)
@@ -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);