]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Do not segfault on iface == NULL.
authorPavel Machek <pavel@ucw.cz>
Tue, 28 Jul 1998 21:42:08 +0000 (21:42 +0000)
committerPavel Machek <pavel@ucw.cz>
Tue, 28 Jul 1998 21:42:08 +0000 (21:42 +0000)
nest/rt-attr.c

index fa92d66505d15b4c66aad7afdf299ed9ad511a55..9f7fd2b87c0820ddb781a64088914f16adddacdc 100644 (file)
@@ -148,7 +148,7 @@ rta_dump(rta *a)
   if (a->dest == RTD_ROUTER)
     debug(" ->%I", a->gw);
   if (a->dest == RTD_DEVICE || a->dest == RTD_ROUTER)
-    debug(" [%s]", a->iface->name);
+    debug(" [%s]", a->iface ? a->iface->name : "???" );
 }
 
 void