[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 128/219: WRITEFUNCTION: add missing set_in_callback
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 128/219: WRITEFUNCTION: add missing set_in_callback around callback |
Date: |
Wed, 22 May 2019 19:17:47 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 0eec832603d3a4ba9ae69a16351cf29c37f7fb7c
Author: Taiyu Len <address@hidden>
AuthorDate: Fri May 3 23:59:28 2019 -0700
WRITEFUNCTION: add missing set_in_callback around callback
Closes #3837
---
lib/sendf.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/sendf.c b/lib/sendf.c
index 504a28ae4..5913ea406 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -595,7 +595,10 @@ static CURLcode chop_write(struct connectdata *conn,
size_t chunklen = len <= CURL_MAX_WRITE_SIZE? len: CURL_MAX_WRITE_SIZE;
if(writebody) {
- size_t wrote = writebody(ptr, 1, chunklen, data->set.out);
+ size_t wrote;
+ Curl_set_in_callback(data, true);
+ wrote = writebody(ptr, 1, chunklen, data->set.out);
+ Curl_set_in_callback(data, false);
if(CURL_WRITEFUNC_PAUSE == wrote) {
if(conn->handler->flags & PROTOPT_NONETWORK) {
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnurl] 128/219: WRITEFUNCTION: add missing set_in_callback around callback,
gnunet <=