From 2b876ec8dd247a7c6b6034eba66e691ef23a3053 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Tue, 17 Nov 2026 21:16:11 -0500 Subject: [PATCH] control: avoid double free on write failure control_handle_data already hangs up the connection when the write handler returns -1. Leave cleanup to the caller. Fixes: 78ea09ed1633 ("control: Avoid hangup in the recvdata path") --- src/control.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/control.c b/src/control.c index 6b3d053c..6286db33 100644 --- a/src/control.c +++ b/src/control.c @@ -243,7 +243,6 @@ control_handle_write(struct fd_list *fd) // We don't get ELE_HANGUP for some reason logerr("%s: write", __func__); } - control_hangup(fd); return -1; }