]> sjero.net Git - wget/commitdiff
Remove assert which is always true
authorGiuseppe Scrivano <gscrivan@redhat.com>
Wed, 30 Oct 2013 20:20:50 +0000 (21:20 +0100)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Wed, 30 Oct 2013 20:20:50 +0000 (21:20 +0100)
src/ChangeLog
src/http.c

index 566db745f38ad60ad74e8887929a41a1879c0dd3..73ae4ee9d7de2e6a8dec5cca5630273862cc35ba 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-30  Giuseppe Scrivano  <gscrivan@redhat.com>
+
+       * http.c (skip_short_body): Remove assert which is always true.
+       Reported by: David Binderman <dcb314@hotmail.com>
+
 2013-10-17  Andrea Urbani  <matfanjol@mail.com>
 
        * ftp.c (getftp): force "LIST" or "LIST -a"
index 6b042a7eb8c1574daed5a2ac937fe46ff52a0cb8..dbfcdfbf407acfba5a5c7a32600e96e1d3ea2a66 100644 (file)
@@ -924,8 +924,6 @@ skip_short_body (int fd, wgint contlen, bool chunked)
   char dlbuf[SKIP_SIZE + 1];
   dlbuf[SKIP_SIZE] = '\0';        /* so DEBUGP can safely print it */
 
-  assert (contlen != -1 || contlen);
-
   /* If the body is too large, it makes more sense to simply close the
      connection than to try to read the body.  */
   if (contlen > SKIP_THRESHOLD)