summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vty/vty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vty/vty.c b/src/vty/vty.c
index cd252ad1..8cc2a3ae 100644
--- a/src/vty/vty.c
+++ b/src/vty/vty.c
@@ -128,6 +128,7 @@ struct vty *vty_new(void)
goto out_obuf;
new->max = VTY_BUFSIZ;
+ new->fd = -1;
return new;