GUACAMOLE-411: Fixed using uninitialized values in guacd_send_fd

This commit is contained in:
Jukka-Pekka Virtanen 2017-10-10 12:41:19 +03:00
parent d35cc7a83e
commit c8eaa91ad3

View File

@ -44,7 +44,7 @@ int guacd_send_fd(int sock, int fd) {
message.msg_iovlen = 1; message.msg_iovlen = 1;
/* Assign ancillary data buffer */ /* Assign ancillary data buffer */
char buffer[CMSG_SPACE(sizeof(fd))]; char buffer[CMSG_SPACE(sizeof(fd))] = {0};
message.msg_control = buffer; message.msg_control = buffer;
message.msg_controllen = sizeof(buffer); message.msg_controllen = sizeof(buffer);