GUACAMOLE-411: Fixed using uninitialized values in guacd_send_fd
This commit is contained in:
parent
d35cc7a83e
commit
c8eaa91ad3
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user