summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-03-25 04:22:04 +0100
committerGitHub <noreply@github.com>2022-03-25 04:22:04 +0100
commit86c1ef566729ca6a49fa9cfb5e81ecfacfb00b32 (patch)
tree0cbff0b6a7e3d4e4aef898d22c7d5be26ed8a5da /lib/vty.c
parentf908faed4afb921d684d54290f4c943d134d3aa5 (diff)
parentb4c94f8c4da9c8dcf4f7e3291ad3727a937650cc (diff)
Merge pull request #10865 from donaldsharp/freebsd_terminal_monitor
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 78ef9894de..619d51e1ce 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -2033,6 +2033,7 @@ static int vtysh_do_pass_fd(struct vty *vty)
struct cmsghdr *cmh = CMSG_FIRSTHDR(&mh);
ssize_t ret;
+ memset(&u.buf, 0, sizeof(u.buf));
cmh->cmsg_level = SOL_SOCKET;
cmh->cmsg_type = SCM_RIGHTS;
cmh->cmsg_len = CMSG_LEN(sizeof(int));