boot-server: fix type confusion when allocating connection object

Right now we allocate enough room for a whole ply_boot_server_t
object for every connection object.

This commit mops up the over-allocation
calculate-0.9.5
Ray Strode 5 years ago
parent 24a7ee5c5d
commit f7d8204198

@ -161,7 +161,7 @@ ply_boot_connection_new (ply_boot_server_t *server,
{
ply_boot_connection_t *connection;
connection = calloc (1, sizeof(ply_boot_server_t));
connection = calloc (1, sizeof(ply_boot_connection_t));
connection->fd = fd;
connection->server = server;
connection->watch = NULL;

Loading…
Cancel
Save