[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: build_header_response(): fail ear
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: build_header_response(): fail early if no write space is available |
Date: |
Sun, 03 Oct 2021 19:53:31 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new 0fd78e5f build_header_response(): fail early if no write space is
available
0fd78e5f is described below
commit 0fd78e5f406161115fa31ba91e02ac7bfbae1dfd
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Sep 29 16:16:48 2021 +0300
build_header_response(): fail early if no write space is available
---
src/microhttpd/connection.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 3e6a4ba0..925f9df5 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -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 * */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] branch master updated: build_header_response(): fail early if no write space is available,
gnunet <=