From 5afc94435cc0c0b3dc33279dd62552ea15bbea0c Mon Sep 17 00:00:00 2001 From: Jacob Quinn Date: Mon, 11 Mar 2024 17:45:01 -0600 Subject: [PATCH] Fix sizeof channel negotiation task (#631) Co-authored-by: Waqar Ahmed Khan --- source/darwin/secure_transport_tls_channel_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/darwin/secure_transport_tls_channel_handler.c b/source/darwin/secure_transport_tls_channel_handler.c index fe647dd24..924399201 100644 --- a/source/darwin/secure_transport_tls_channel_handler.c +++ b/source/darwin/secure_transport_tls_channel_handler.c @@ -504,7 +504,7 @@ int aws_tls_client_handler_start_negotiation(struct aws_channel_handler *handler return s_drive_negotiation(handler); } - struct aws_channel_task *negotiation_task = aws_mem_acquire(handler->alloc, sizeof(struct aws_task)); + struct aws_channel_task *negotiation_task = aws_mem_acquire(handler->alloc, sizeof(struct aws_channel_task)); if (!negotiation_task) { return AWS_OP_ERR;