Do not segfault on iface == NULL.

This commit is contained in:
Pavel Machek 1998-07-28 21:42:08 +00:00
parent a872b0f7da
commit 48b41d5811

View 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