From 48b41d58112737f87f1217414291e61f5430f611 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Tue, 28 Jul 1998 21:42:08 +0000 Subject: Do not segfault on iface == NULL. --- nest/rt-attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nest/rt-attr.c') diff --git a/nest/rt-attr.c b/nest/rt-attr.c index fa92d665..9f7fd2b8 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -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 -- cgit v1.2.3