From 79f4110365fe85f4377c50f0893134a8d5e45575 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Fri, 30 Oct 2026 01:00:52 +0100 Subject: Consolidate all tcp/http tear down into a single http_close function to prevent a rare UAF for expiring connections --- ot_http.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ot_http.h') diff --git a/ot_http.h b/ot_http.h index 1ccabfd..0f351c1 100644 --- a/ot_http.h +++ b/ot_http.h @@ -37,6 +37,9 @@ struct http_data { void http_interest_add(const int64_t s, struct http_data *cookie, int what); void http_interest_drop(const int64_t s, struct http_data *cookie, int what); +/* Close a connection and release everything that belongs to it */ +void http_close(const int64_t s); + ssize_t http_handle_request(const int64_t s, struct ot_workstruct *ws); ssize_t http_sendiovecdata(const int64_t s, struct ot_workstruct *ws, size_t iovec_entries, struct iovec *iovector, int is_partial); ssize_t http_issue_error(const int64_t s, struct ot_workstruct *ws, int code); -- cgit v1.3