summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 1eb4171630..21b3d47b09 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -1811,6 +1811,7 @@ static int vty_accept(struct thread *thread)
set_cloexec(vty_sock);
if (!sockunion2hostprefix(&su, &p)) {
+ close(vty_sock);
zlog_info("Vty unable to convert prefix from sockunion %s",
sockunion2str(&su, buf, SU_ADDRSTRLEN));
return -1;