build_header_response(): fail early if no write space is available

This commit is contained in:
Evgeny Grin (Karlson2k)
2021-10-03 20:50:46 +03:00
parent 9d6c3deddb
commit 0fd78e5f40
+2
View File
@@ -1980,6 +1980,8 @@ build_header_response (struct MHD_Connection *connection)
buf = c->write_buffer;
pos = c->write_buffer_append_offset;
buf_size = c->write_buffer_size;
if ((NULL == buf) || (0 == buf_size))
return MHD_NO;
/* * The status line * */