Repository: incubator-guacamole-server
Updated Branches:
  refs/heads/master c49c57ef3 -> 012a3497e


GUACAMOLE-411: Fixed using uninitialized values in guacd_send_fd


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/commit/c8eaa91a
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/tree/c8eaa91a
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/diff/c8eaa91a

Branch: refs/heads/master
Commit: c8eaa91ad393a7d025e03f9eef94f7e046b16a69
Parents: d35cc7a
Author: Jukka-Pekka Virtanen <[email protected]>
Authored: Tue Oct 10 12:41:19 2017 +0300
Committer: Jukka-Pekka Virtanen <[email protected]>
Committed: Tue Oct 10 12:41:19 2017 +0300

----------------------------------------------------------------------
 src/guacd/move-fd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/blob/c8eaa91a/src/guacd/move-fd.c
----------------------------------------------------------------------
diff --git a/src/guacd/move-fd.c b/src/guacd/move-fd.c
index 8560106..8ee6223 100644
--- a/src/guacd/move-fd.c
+++ b/src/guacd/move-fd.c
@@ -44,7 +44,7 @@ int guacd_send_fd(int sock, int fd) {
     message.msg_iovlen = 1;
 
     /* Assign ancillary data buffer */
-    char buffer[CMSG_SPACE(sizeof(fd))];
+    char buffer[CMSG_SPACE(sizeof(fd))] = {0};
     message.msg_control = buffer;
     message.msg_controllen = sizeof(buffer);
 

Reply via email to