GUACAMOLE-411: Merge changes fully initializing CMSG buffer prior to use.
This commit is contained in:
commit
012a3497eb
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user