summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/iface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index e6cdd1f..a9c6741 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -236,7 +236,8 @@ ospf_iface_sm(struct ospf_iface *ifa, int event)
{
struct ospf_area *oa = ifa->oa;
- DBG("SM on iface %s. Event is '%s'\n", ifa->iface->name, ospf_ism[event]);
+ DBG("SM on %s %s. Event is '%s'\n", (ifa->type == OSPF_IT_VLINK) ? "vlink" : "iface",
+ ifa->iface ? ifa->iface->name : "(none)" , ospf_ism[event]);
switch (event)
{