gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 24/173: content_encoding: change return code on a f


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 24/173: content_encoding: change return code on a failure
Date: Fri, 24 Feb 2017 14:00:46 +0100

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

ng0 pushed a commit to annotated tag gnurl-7.53.1
in repository gnurl.

commit ad10eb5fed351072ac4528b5e57f92f0a381ac24
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Dec 29 11:24:20 2016 +0100

    content_encoding: change return code on a failure
    
    Failure to decompress is now a write error instead of the weird
    "function not found".
---
 lib/content_encoding.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/content_encoding.c b/lib/content_encoding.c
index 5385058e2..c3996a113 100644
--- a/lib/content_encoding.c
+++ b/lib/content_encoding.c
@@ -314,7 +314,7 @@ Curl_unencode_gzip_write(struct connectdata *conn,
 #ifndef OLD_ZLIB_SUPPORT
   /* Support for old zlib versions is compiled away and we are running with
      an old version, so return an error. */
-  return exit_zlib(z, &k->zlib_init, CURLE_FUNCTION_NOT_FOUND);
+  return exit_zlib(z, &k->zlib_init, CURLE_WRITE_ERROR);
 
 #else
   /* This next mess is to get around the potential case where there isn't

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



reply via email to

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