summaryrefslogtreecommitdiff
path: root/nest/rt-attr.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1998-07-28 21:42:08 +0000
committerPavel Machek <pavel@ucw.cz>1998-07-28 21:42:08 +0000
commit48b41d58112737f87f1217414291e61f5430f611 (patch)
tree1cd437a973b5f9db4c548758d7765a11070a0648 /nest/rt-attr.c
parenta872b0f7dae38cfef574d0d3b30609e968cdf95b (diff)
Do not segfault on iface == NULL.
Diffstat (limited to 'nest/rt-attr.c')
-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 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