gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 146/178: http: don't set the "rewind" flag when not


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 146/178: http: don't set the "rewind" flag when not uploading anything
Date: Wed, 23 May 2018 12:26:21 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit e9d9d1af8a512d4b4ed500308247766524b21763
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri May 4 11:06:26 2018 +0200

    http: don't set the "rewind" flag when not uploading anything
    
    It triggers an assert.
    
    Detected by OSS-Fuzz
    Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8144
    Closes #2546
---
 lib/http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/http.c b/lib/http.c
index ec709ff8d..1a313b4fb 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -433,7 +433,7 @@ static CURLcode http_perhapsrewind(struct connectdata *conn)
            data left to send, keep on sending. */
 
         /* rewind data when completely done sending! */
-        if(!conn->bits.authneg) {
+        if(!conn->bits.authneg && (conn->writesockfd != CURL_SOCKET_BAD)) {
           conn->bits.rewindaftersend = TRUE;
           infof(data, "Rewind stream after send\n");
         }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]