1
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-06 01:40:42 +01:00

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