summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1998-07-28 23:42:08 +0200
committerPavel Machek <pavel@ucw.cz>1998-07-28 23:42:08 +0200
commit48b41d58112737f87f1217414291e61f5430f611 (patch)
tree1cd437a973b5f9db4c548758d7765a11070a0648
parenta872b0f7dae38cfef574d0d3b30609e968cdf95b (diff)
downloadbird-48b41d58112737f87f1217414291e61f5430f611.tar
bird-48b41d58112737f87f1217414291e61f5430f611.zip
Do not segfault on iface == NULL.
-rw-r--r--nest/rt-attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c
index fa92d66..9f7fd2b 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