mirror of
https://github.com/mirror/wget.git
synced 2025-01-05 09:50:27 +08:00
Remove assert which is always true
This commit is contained in:
parent
c3835a425a
commit
42c15e47b4
@ -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>
|
2013-10-17 Andrea Urbani <matfanjol@mail.com>
|
||||||
|
|
||||||
* ftp.c (getftp): force "LIST" or "LIST -a"
|
* ftp.c (getftp): force "LIST" or "LIST -a"
|
||||||
|
@ -924,8 +924,6 @@ skip_short_body (int fd, wgint contlen, bool chunked)
|
|||||||
char dlbuf[SKIP_SIZE + 1];
|
char dlbuf[SKIP_SIZE + 1];
|
||||||
dlbuf[SKIP_SIZE] = '\0'; /* so DEBUGP can safely print it */
|
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
|
/* If the body is too large, it makes more sense to simply close the
|
||||||
connection than to try to read the body. */
|
connection than to try to read the body. */
|
||||||
if (contlen > SKIP_THRESHOLD)
|
if (contlen > SKIP_THRESHOLD)
|
||||||
|
Loading…
Reference in New Issue
Block a user