summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 042c30757c..6501ca5cd8 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -458,9 +458,9 @@ vty_command (struct vty *vty, char *buf)
/* Get the name of the protocol if any */
if (zlog_default)
- protocolname = zlog_proto_names[zlog_default->protocol];
+ protocolname = zlog_default->protoname;
else
- protocolname = zlog_proto_names[ZLOG_NONE];
+ protocolname = "NONE";
#ifdef CONSUMED_TIME_CHECK
GETRUSAGE(&after);