From b57ef2e8fef797e68ff875df3fe6ac9bfacdee4e Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 19 Feb 2019 11:35:11 -0800 Subject: [PATCH] ircd::resource::response: Avoid call to write empty content here. --- ircd/resource.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ircd/resource.cc b/ircd/resource.cc index 787494e62..7fb00cbbc 100644 --- a/ircd/resource.cc +++ b/ircd/resource.cc @@ -1071,7 +1071,9 @@ ircd::resource::response::response(client &client, // All content gets sent const size_t written { - client.write_all(content) + size(content)? + client.write_all(content): + 0 }; assert(written == size(content));