]> granicus.if.org Git - curl/commitdiff
content_encoding: change return code on a failure
authorDaniel Stenberg <daniel@haxx.se>
Thu, 29 Dec 2016 10:24:20 +0000 (11:24 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 29 Dec 2016 10:31:01 +0000 (11:31 +0100)
Failure to decompress is now a write error instead of the weird
"function not found".

lib/content_encoding.c

index 5385058e2e0b8ee3e41f8c645f81b31b7228015f..c3996a1130d3a4eb6af52d492f513d393cd4dc46 100644 (file)
@@ -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