gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 65/73: mime: do not reuse previously computed multi


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 65/73: mime: do not reuse previously computed multipart size
Date: Tue, 24 Oct 2017 18:54:46 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit cea27d3454114a663e96099f9944333b3232b392
Author: Patrick Monnerat <address@hidden>
AuthorDate: Fri Oct 20 13:57:12 2017 +0100

    mime: do not reuse previously computed multipart size
    
    The contents might have changed: size must be recomputed.
    
    Reported-by: moteus on github
    Fixes #1999
---
 lib/mime.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/mime.c b/lib/mime.c
index d9b7f524e..07eded723 100644
--- a/lib/mime.c
+++ b/lib/mime.c
@@ -1523,7 +1523,7 @@ curl_off_t Curl_mime_size(curl_mimepart *part)
 {
   curl_off_t size;
 
-  if(part->datasize < 0 && part->kind == MIMEKIND_MULTIPART)
+  if(part->kind == MIMEKIND_MULTIPART)
     part->datasize = multipart_size(part->arg);
 
   size = part->datasize;

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



reply via email to

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