From 22a30da3bc4050e8ac8497bacab785069029f996 Mon Sep 17 00:00:00 2001 From: James Muehlner Date: Tue, 22 Oct 2024 23:56:23 +0000 Subject: [PATCH] GUACAMOLE-1517: Fix nested socket initialization. (cherry picked from commit 228acef133f1118d4ec2e81029066352a04b9ddb) --- src/libguac/socket-nest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libguac/socket-nest.c b/src/libguac/socket-nest.c index 29319097f..8bf94352a 100644 --- a/src/libguac/socket-nest.c +++ b/src/libguac/socket-nest.c @@ -315,7 +315,7 @@ guac_socket* guac_socket_nest(guac_socket* parent, int index) { /* Allocate socket and associated data */ guac_socket* socket = guac_socket_alloc(); - guac_socket_nest_data* data = guac_mem_alloc(sizeof(guac_socket_nest_data)); + guac_socket_nest_data* data = guac_mem_zalloc(sizeof(guac_socket_nest_data)); /* Store nested socket details as socket data */ data->parent = parent;